@font-face {
    font-display: swap;
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/material-symbols-rounded-v285-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/syne-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    src: url('assets/fonts/syne-v24-latin-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/lexend-deca-v25-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 700;
    src: url('assets/fonts/lexend-deca-v25-latin-700.woff2') format('woff2');
}

:root {
    /* Light Theme (Default) */
    --bg-color: #F0EFEB;
    --text-color: #1D1D1B;
    --logo-make-color: #1D1D1B;
    --logo-stry-color: #737373;
    --logo-hover-make-color: #737373;
    --logo-hover-stry-color: #1D1D1B;
    --icon-color: #1D1D1B;
    --placeholder-color: #BDBDBD;
    --modal-bg: rgba(240, 239, 235, 0.5);
    --modal-border: rgba(240, 239, 235, 0.2);
    --footer-link-color: #555;
    --glass-bg-light: rgba(240, 239, 235, 0.4);
    --glass-border-light: rgba(240, 239, 235, 0.6);
    --glass-shadow-light: rgba(0, 0, 0, 0.1);
    --tab-bg-color: rgba(0, 0, 0, 0.05);
    --tab-active-bg-color: transparent;
    --input-bg-color: rgba(0, 0, 0, 0.05);
    --note-item-hover-bg: rgba(0, 0, 0, 0.05);
    --note-item-active-bg: rgba(0, 0, 0, 0.1);
    --button-shadow: 0 4px 12px rgba(29, 29, 27, 0.15);
}

body.dim-theme {
    --bg-color: #24292e;
    --text-color: #F0EFEB;
    --logo-make-color: #F0EFEB;
    --logo-stry-color: #8b949e;
    --logo-hover-make-color: #8b949e;
    --logo-hover-stry-color: #F0EFEB;
    --icon-color: #F0EFEB;
    --placeholder-color: #586069;
    --modal-bg: rgba(36, 41, 46, 0.6);
    --modal-border: rgba(240, 239, 235, 0.1);
    --footer-link-color: #8b949e;
    --glass-bg-dim: rgba(36, 41, 46, 0.4);
    --glass-border-dim: rgba(240, 239, 235, 0.2);
    --glass-shadow-dim: rgba(0, 0, 0, 0.25);
    --tab-bg-color: rgba(240, 239, 235, 0.05);
    --tab-active-bg-color: transparent;
    --input-bg-color: rgba(240, 239, 235, 0.08);
    --note-item-hover-bg: rgba(240, 239, 235, 0.05);
    --note-item-active-bg: rgba(240, 239, 235, 0.1);
    --button-shadow: 0 4px 12px rgba(240, 239, 235, 0.2);
}

body.dark-theme {
    --bg-color: #0d1117;
    --text-color: #F0EFEB;
    --logo-make-color: #F0EFEB;
    --logo-stry-color: #848d97;
    --logo-hover-make-color: #848d97;
    --logo-hover-stry-color: #F0EFEB;
    --icon-color: #F0EFEB;
    --placeholder-color: #484f58;
    --modal-bg: rgba(13, 17, 23, 0.6);
    --modal-border: rgba(240, 239, 235, 0.1);
    --footer-link-color: #848d97;
    --glass-bg-dark: rgba(13, 17, 23, 0.4);
    --glass-border-dark: rgba(240, 239, 235, 0.2);
    --glass-shadow-dark: rgba(0, 0, 0, 0.35);
    --tab-bg-color: rgba(240, 239, 235, 0.05);
    --tab-active-bg-color: transparent;
    --input-bg-color: rgba(240, 239, 235, 0.1);
    --note-item-hover-bg: rgba(240, 239, 235, 0.05);
    --note-item-active-bg: rgba(240, 239, 235, 0.1);
    --button-shadow: 0 4px 12px rgba(240, 239, 235, 0.25);
}

body.zen-theme {
    --bg-color: #F0EFEB;
    --text-color: #1D1D1B;
    --logo-make-color: #1D1D1B;
    --logo-stry-color: #737373;
    --logo-hover-make-color: #737373;
    --logo-hover-stry-color: #1D1D1B;
    --icon-color: #1D1D1B;
    --placeholder-color: rgba(29, 29, 27, 0.5);
    --modal-bg: rgba(240, 239, 235, 0.5);
    --modal-border: rgba(240, 239, 235, 0.2);
    --footer-link-color: #555;
    background-color: transparent;
    --glass-bg-zen: rgba(240, 239, 235, 0.2);
    --glass-border-zen: rgba(240, 239, 235, 0.4);
    --glass-shadow-zen: rgba(0, 0, 0, 0.05);
    --tab-bg-color: rgba(0, 0, 0, 0.05);
    --tab-active-bg-color: transparent;
    --input-bg-color: rgba(0, 0, 0, 0.05);
    --note-item-hover-bg: rgba(0, 0, 0, 0.03);
    --note-item-active-bg: rgba(0, 0, 0, 0.07);
    --button-shadow: 0 4px 12px rgba(29, 29, 27, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.5s ease;
    overflow: hidden;
}

body.note-case-open {
    padding-left: 300px;
}

#zen-mode-canvas {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body.zen-theme #zen-mode-canvas {
    display: block;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: left 0.5s ease, width 0.5s ease, opacity 0.4s ease;
}

body.note-case-open header {
    left: 300px;
    width: calc(100% - 300px);
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.5rem;
    text-transform: lowercase;
    cursor: default;
}

.logo-make {
    font-weight: 700;
    color: var(--logo-make-color);
    transition: color 0.3s ease;
}

.logo-stry {
    font-weight: 300;
    color: var(--logo-stry-color);
    transition: color 0.3s ease;
}

.logo:hover .logo-make {
    color: var(--logo-hover-make-color);
}

.logo:hover .logo-stry {
    color: var(--logo-hover-stry-color);
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--icon-color);
    transition: opacity 0.2s ease;
}

.icon-button:hover {
    opacity: 1;
}

.icon-button .material-symbols-rounded {
    font-size: 1.75rem;
    vertical-align: middle;
}

.theme-switcher {
    position: relative;
}

.theme-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--modal-border);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.theme-menu.active {
    display: flex;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
    width: 100%;
}

.theme-option:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.counter {
    cursor: pointer;
    font-size: 1rem;
    color: var(--logo-stry-color);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 80px;
    justify-content: center;
}

.counter:hover {
    color: var(--icon-color);
}

#word-count-container,
#pomodoro-icon-container,
#pomodoro-timer-display {
    transition: opacity 0.5s ease;
}

#word-count-container,
#pomodoro-icon-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

main {
    padding-top: 100px;
    padding-bottom: 80px;
    height: 100vh;
    transition: padding-bottom 0.5s ease;
    position: relative;
}

body.footer-visible main {
    padding-bottom: 200px;
}

#fullscreen-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-size: 3.5vw;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--placeholder-color);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

#fullscreen-placeholder.hidden {
    opacity: 0;
}

#writing-area {
    width: 75%;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    outline: none;
    resize: none;
    position: relative;
    z-index: 2;
    display: block;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    transform: translateY(0);
    transition: transform 0.5s ease, left 0.5s ease, width 0.5s ease;
    background: var(--glass-bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border-light);
    box-shadow: 0 -4px 30px var(--glass-shadow-light);
}

body.note-case-open footer {
    left: 300px;
    width: calc(100% - 300px);
}

body.dim-theme footer {
    background: var(--glass-bg-dim);
    border-color: var(--glass-border-dim);
    box-shadow: 0 -4px 30px var(--glass-shadow-dim);
}

body.dark-theme footer {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: 0 -4px 30px var(--glass-shadow-dark);
}

body.zen-theme footer {
    background: var(--glass-bg-zen);
    border-color: var(--glass-border-zen);
    box-shadow: 0 -4px 30px var(--glass-shadow-zen);
}

footer.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 20px;
    background-color: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, bottom 0.5s ease;
    z-index: 12;
}

.floating-btn:hover {
    opacity: 1;
}

.floating-center {
    left: 50%;
    transform: translateX(-50%);
}

.floating-right {
    right: 20px;
}

body.footer-visible .floating-btn,
body.footer-visible #note-case-toggle-button {
    bottom: 195px;
}

#footer-toggle-button span {
    transition: transform 0.3s ease;
}

#footer-toggle-button.is-open span {
    transform: rotate(180deg);
}

/* Version History Modal */
.version-modal .version-content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.version-modal .version-content h3 .material-symbols-rounded {
    font-size: 1.5rem;
}

.version-info {
    font-size: 0.8rem;
    color: var(--logo-stry-color);
    margin-bottom: 1rem;
}

.versions-list {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.versions-empty {
    text-align: center;
    color: var(--logo-stry-color);
    padding: 2rem 0;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: var(--input-bg-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.version-item:hover {
    background-color: var(--note-item-hover-bg);
}

.version-item-info {
    flex: 1;
    overflow: hidden;
}

.version-item-preview {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.version-item-date {
    font-size: 0.75rem;
    color: var(--logo-stry-color);
}

.version-item-restore {
    font-size: 0.8rem;
    color: var(--logo-stry-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--logo-stry-color);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.version-item-restore:hover {
    background-color: var(--logo-make-color);
    color: var(--bg-color);
    border-color: var(--logo-make-color);
}

.footer-credits {
    text-align: center;
    font-size: 0.8rem;
}

.footer-credits a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: var(--text-color);
}

.newsletter-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.newsletter-cta {
    font-family: 'Syne', sans-serif;
    text-transform: lowercase;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.newsletter-form-container form {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(240, 239, 235, 0.2);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.newsletter-form-container input[type="email"] {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    min-width: 250px;
}

.newsletter-form-container input[type="email"]::placeholder {
    color: var(--logo-stry-color);
}

.newsletter-form-container input[type="email"]:focus {
    outline: none;
}

.newsletter-form-container button,
.newsletter-form-container input[type="submit"] {
    background-color: var(--logo-make-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form-container button:hover,
.newsletter-form-container input[type="submit"]:hover {
    opacity: 0.8;
}

#toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    color: #F0EFEB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, left 0.5s ease, width 0.5s ease;
}

body.note-case-open .stats-modal {
    left: 300px;
    width: calc(100% - 300px);
}

.stats-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.stats-content {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.stats-modal.visible .stats-content {
    transform: scale(1);
}

.stats-content h3 {
    font-family: 'Lexend Deca', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stats-content p {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--logo-stry-color);
}

.stats-content p strong {
    color: var(--text-color);
}

.modal-close-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0.6;
}

.modal-close-button:hover {
    opacity: 1;
}

.modal-close-button .material-symbols-rounded {
    font-size: 1.5rem;
}

.modal-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: var(--tab-bg-color);
    border-radius: 8px;
    padding: 4px;
}

.modal-tab-button,
.auth-tab-button {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    background-color: transparent;
    color: var(--logo-stry-color);
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-tab-button.active,
.auth-tab-button.active {
    background-color: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

.modal-tab-content.active#profile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pomodoro-timer-display-modal {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pomodoro-main-button {
    background-color: var(--logo-make-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.pomodoro-main-button:hover {
    transform: scale(1.05);
}

.pomodoro-main-button .material-symbols-rounded {
    font-size: 2.5rem;
}

#pomodoro-reset .material-symbols-rounded {
    font-size: 1.5rem;
}

.pomodoro-settings {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.setting-item label {
    font-size: 0.8rem;
    color: var(--logo-stry-color);
}

.setting-item input[type="number"] {
    background-color: var(--input-bg-color);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-color);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    -moz-appearance: textfield;
}

.setting-item input[type="number"]::-webkit-outer-spin-button,
.setting-item input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.setting-item input[type="number"]:focus {
    outline: none;
    border-color: var(--logo-stry-color);
}

.pomodoro-auto-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pomodoro-auto-start label {
    font-size: 0.9rem;
    color: var(--logo-stry-color);
    cursor: pointer;
}

#note-case-toggle-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 12;
    background-color: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.5s ease, bottom 0.5s ease;
}

#note-case-toggle-button:hover {
    opacity: 1;
}

#note-case-toggle-button span {
    transition: transform 0.5s ease;
    display: inline-block;
}

body.note-case-open #note-case-toggle-button span {
    transform: rotate(360deg);
}

body.note-case-open #note-case-toggle-button {
    transform: translateX(300px);
}

#note-case-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border-light);
    box-shadow: 4px 0px 15px rgba(0, 0, 0, 0.1);
}

body.dim-theme #note-case-panel {
    background: var(--glass-bg-dim);
    border-right-color: var(--glass-border-dim);
    box-shadow: 4px 0px 30px var(--glass-shadow-dim);
}

body.dark-theme #note-case-panel {
    background: var(--glass-bg-dark);
    border-right-color: var(--glass-border-dark);
    box-shadow: 4px 0px 30px var(--glass-shadow-dark);
}

body.zen-theme #note-case-panel {
    background: var(--glass-bg-zen);
    border-right-color: var(--glass-border-zen);
    box-shadow: 4px 0px 30px var(--glass-shadow-zen);
}

#note-case-panel.is-open {
    transform: translateX(0);
}

.note-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--note-item-active-bg);
}

.note-case-header h2 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.25rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.note-case-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-list-container {
    overflow-y: auto;
    flex-grow: 1;
    touch-action: pan-y;
}

.mobile-only {
    display: none;
}

#notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#notes-list li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--note-item-active-bg);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

#notes-list li:hover {
    background-color: var(--note-item-hover-bg);
}

#notes-list li.active-note {
    background-color: var(--note-item-active-bg);
}

.note-preview {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    pointer-events: none;
}

.note-timestamp {
    font-size: 0.8rem;
    color: var(--logo-stry-color);
    pointer-events: none;
}

.delete-note-button {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

#notes-list li:hover .delete-note-button {
    opacity: 0.6;
}

.delete-note-button:hover {
    opacity: 1 !important;
}

:fullscreen header {
    opacity: 0.15;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-actions.hidden {
    display: none;
}

.button-primary {
    background-color: var(--logo-make-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
    opacity: 0.8;
}

/* Hibrit Login Butonu - Desktop: metin görünür, ikon gizli */
.login-btn-hybrid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn-hybrid .login-btn-icon {
    display: none;
}

.login-btn-hybrid .login-btn-text {
    display: inline;
}

/* Avatar Stilleri */
.avatar-button {
    position: relative;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.header-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
}

.header-avatar.visible {
    display: block;
}

.header-avatar.visible+.header-avatar-icon {
    display: none;
}

/* Profil Modal Avatar Yükleme */
.avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--input-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--modal-border);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-preview img.visible {
    display: block;
}

.avatar-preview img.visible+.avatar-placeholder {
    display: none;
}

.avatar-placeholder {
    font-size: 3rem;
    color: var(--logo-stry-color);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: calc(50% - 65px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--logo-make-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.avatar-upload-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.avatar-upload-btn .material-symbols-rounded {
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-form input {
    background-color: var(--input-bg-color);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-color);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    padding: 0.75rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--logo-stry-color);
}

.auth-form button {
    background-color: var(--logo-make-color);
    color: var(--bg-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.auth-form button:hover {
    opacity: 0.8;
}

.auth-message {
    font-size: 0.9rem;
    color: #dc3545;
    min-height: 1.2rem;
    margin-top: 0.5rem;
}

.auth-message.error-locked,
.auth-message.error-blocked {
    color: #dc3545;
    font-weight: 700;
    padding: 0.75rem;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.account-info {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    word-break: break-all;
}

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 1002;
    background: var(--glass-bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border-light);
    box-shadow: 0 -4px 30px var(--glass-shadow-light);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

#cookie-consent-banner.visible {
    display: flex;
    transform: translateY(0);
}

body.dim-theme #cookie-consent-banner {
    background: var(--glass-bg-dim);
    border-color: var(--glass-border-dim);
    box-shadow: 0 -4px 30px var(--glass-shadow-dim);
}

body.dark-theme #cookie-consent-banner {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: 0 -4px 30px var(--glass-shadow-dark);
}

body.zen-theme #cookie-consent-banner {
    background: var(--glass-bg-zen);
    border-color: var(--glass-border-zen);
    box-shadow: 0 -4px 30px var(--glass-shadow-zen);
}

#cookie-consent-banner p {
    margin: 0;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

#cookie-consent-banner a {
    color: var(--logo-stry-color);
    text-decoration: underline;
    font-weight: 700;
}

#cookie-consent-banner .button-primary {
    flex-shrink: 0;
}

.more-options-menu-container {
    position: relative;
    display: none;
}

#more-options-menu {
    right: 0;
    left: auto;
    min-width: 150px;
}

.desktop-only-icon {
    display: flex;
}

/* --- HESABIM MODALI DÜZENLEMELERİ --- */

#account-modal .modal-tabs {
    display: inline-flex;
    padding: 3px;
    gap: 4px;
}

#account-modal .modal-tab-button {
    padding: 0.6rem;
    flex-basis: 60px;
    flex-grow: 0;
    height: 50px;
}

#account-modal .modal-tab-button .material-symbols-rounded {
    font-size: 1.75rem;
    vertical-align: middle;
}

#account-modal .auth-form {
    margin-bottom: 1.5rem;
    width: 100%;
    /* Formların modal içinde genişlemesini sağlar */
}

#account-email-display {
    background-color: var(--tab-bg-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.delete-warning {
    font-size: 0.9rem;
    color: var(--logo-stry-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.button-danger {
    background-color: #dc3545 !important;
    color: #F0EFEB !important;
}

.button-danger:hover {
    opacity: 0.8;
}

.desktop-logout-button {
    width: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 1rem;
}

#mobile-logout-slider {
    display: none !important;
}

.logout-slider {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: var(--input-bg-color);
    border-radius: 25px;
    margin-top: 1rem;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-text {
    color: var(--logo-stry-color);
    font-size: 0.9rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.slider-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 40px;
    height: 40px;
    background-color: var(--logo-make-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    cursor: grab;
    transition: left 0.3s ease;
}

.slider-thumb:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    body.note-case-open {
        padding-left: 0;
        overflow: hidden;
    }

    body.note-case-open main,
    body.note-case-open header,
    body.note-case-open footer {
        left: 0;
        width: 100%;
        transform: none;
    }

    .mobile-only {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-only-icon {
        display: flex;
    }

    .desktop-only-icon {
        display: none;
    }

    .note-case-header h2 {
        padding-right: 80px;
    }

    #note-case-toggle-button {
        left: 10px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    body.note-case-open #note-case-toggle-button {
        opacity: 0;
        pointer-events: none;
        transform: none;
    }

    #note-case-panel {
        width: 100%;
    }

    #footer-toggle-button {
        right: 10px;
    }

    body.footer-visible .floating-btn,
    body.footer-visible #note-case-toggle-button {
        bottom: 250px;
    }

    header {
        padding: 1rem 0.75rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    main {
        padding: 80px 1rem;
    }

    body.footer-visible main {
        padding-bottom: 220px;
    }

    #fullscreen-placeholder {
        font-size: 6vw;
        padding: 1rem;
    }

    #writing-area {
        padding: 0;
        width: 100%;
    }

    .stats-content {
        padding: 1.5rem;
        padding-top: 3rem;
    }

    .pomodoro-timer-display-modal {
        font-size: 2.5rem;
    }

    .pomodoro-settings {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
    }

    .pomodoro-settings .setting-item {
        flex: 1;
        max-width: 80px;
    }

    .pomodoro-settings .setting-item label {
        font-size: 0.7rem;
    }

    .pomodoro-settings .setting-item input[type="number"] {
        width: 100%;
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .pomodoro-controls {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .pomodoro-main-button {
        width: 50px;
        height: 50px;
    }

    .pomodoro-main-button .material-symbols-rounded {
        font-size: 2rem;
    }

    .newsletter-form-container form {
        flex-direction: column;
        width: 100%;
        background-color: rgba(128, 128, 128, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        gap: 8px;
    }

    .newsletter-form-container input[type="email"] {
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .newsletter-form-container button,
    .newsletter-form-container input[type="submit"] {
        width: 100%;
    }

    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    #cookie-consent-banner .button-primary {
        width: 100%;
    }

    .desktop-logout-button {
        display: none !important;
    }

    #mobile-logout-slider {
        display: block !important;
    }

    /* Hibrit Login Butonu - Mobilde sadece ikon */
    .login-btn-hybrid {
        padding: 8px;
        min-width: auto;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-btn-hybrid .login-btn-text {
        display: none;
    }

    .login-btn-hybrid .login-btn-icon {
        display: block;
        font-size: 1.5rem;
    }
}

/* ============================================
   INFO BUTTON & POPUP
   ============================================ */
.info-button-container {
    position: relative;
}

.info-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.info-button-container:hover .info-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-popup-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px var(--glass-shadow-light);
}

.info-popup-icon {
    font-size: 2rem;
    color: var(--logo-make-color);
    display: block;
    margin-bottom: 0.5rem;
}

.info-popup h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.info-popup p {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.85rem;
    color: var(--logo-stry-color);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.info-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--logo-make-color);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.info-popup-link:hover {
    gap: 8px;
}

.info-popup-link .material-symbols-rounded {
    font-size: 1rem;
}

/* Mobile Info Popup */
@media (max-width: 768px) {
    .info-popup {
        width: 220px;
    }

    .info-popup-content {
        padding: 1rem;
    }

    .info-popup-icon {
        font-size: 1.5rem;
    }

    .info-popup h4 {
        font-size: 0.95rem;
    }

    .info-popup p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .info-popup-link {
        font-size: 0.8rem;
    }

    /* Mobile click toggle support - disable hover */
    .info-button-container:hover .info-popup {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
    }

    /* When is-open class is present, show popup */
    .info-button-container .info-popup.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Profile Modal Mobile Size */
    .account-modal .modal-tab-content {
        padding: 0.75rem 0;
    }

    .account-modal .input-group {
        margin-bottom: 0.75rem;
    }

    .account-modal .input-group label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .account-modal .input-group input {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .account-modal .modal-tab-button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .account-modal .btn-primary,
    .account-modal .btn-danger {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    #mobile-logout-slider {
        height: 44px;
    }

    .slider-thumb {
        width: 34px;
        height: 34px;
    }
}


/* ============================================
   THEME SLIDER
   ============================================ */
.theme-slider {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.theme-slider:hover {
    opacity: 1;
}

.theme-slider-track {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--glass-bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border-light);
    border-radius: 24px;
    padding: 6px;
    box-shadow: 0 4px 20px var(--glass-shadow-light);
}

.theme-slider-option {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--icon-color);
}

.theme-slider-option:hover {
    background: var(--tab-bg-color);
    transform: scale(1.1);
}

.theme-slider-option.active {
    background: var(--logo-make-color);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--glass-shadow-light);
}

.theme-slider-option .material-symbols-rounded {
    font-size: 1.25rem;
}

/* Pull Tab - Hidden on desktop */
.theme-slider-pull-tab {
    display: none;
}

/* Mobile Theme Slider - Pull-out Drawer */
@media (max-width: 768px) {
    .theme-slider {
        right: -52px;
        transition: right 0.3s ease;
        opacity: 1;
        display: flex;
        align-items: center;
    }

    .theme-slider.is-open {
        right: 10px;
    }

    .theme-slider-pull-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 60px;
        background: var(--glass-bg-light);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--glass-border-light);
        border-right: none;
        border-radius: 14px 0 0 14px;
        cursor: pointer;
        margin-right: -1px;
        color: var(--icon-color);
        box-shadow: -2px 0 10px var(--glass-shadow-light);
    }

    .theme-slider-pull-tab .material-symbols-rounded {
        font-size: 1.25rem;
        animation: pulseArrow 2s ease-in-out infinite;
    }

    .theme-slider.is-open .theme-slider-pull-tab .material-symbols-rounded {
        transform: rotate(180deg);
        animation: none;
    }

    @keyframes pulseArrow {

        0%,
        100% {
            transform: translateX(0);
            opacity: 0.6;
        }

        50% {
            transform: translateX(-4px);
            opacity: 1;
        }
    }

    .theme-slider-track {
        border-radius: 0 16px 16px 0;
        padding: 6px;
        gap: 4px;
    }

    .theme-slider-option {
        width: 36px;
        height: 36px;
    }

    .theme-slider-option .material-symbols-rounded {
        font-size: 1.1rem;
    }

    .theme-slider:hover {
        opacity: 1;
    }
}

/* ===========================================
   LANGUAGE SELECTOR STYLES
   =========================================== */

/* Desktop Language Dropdown Container */
.language-dropdown {
    position: relative;
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--glass-shadow-light);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

.lang-dropdown-option:hover {
    background-color: var(--input-bg-color);
}

.lang-dropdown-option.active {
    background-color: var(--input-bg-color);
}

.lang-dropdown-option.active .lang-flag-img {
    transform: scale(1.1);
}

.lang-flag-img {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-name {
    font-weight: 500;
}

/* Mobile Language Slider (inside dropdown) */
.mobile-language-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 8px;
    background: var(--input-bg-color);
    border-radius: 16px;
    border: 1px solid var(--modal-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-language-slider::-webkit-scrollbar {
    display: none;
}

.mobile-lang-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 2px solid transparent;
    background: var(--input-bg-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-lang-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.mobile-lang-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-lang-flag-img {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* Hide desktop language dropdown on mobile */
@media (max-width: 768px) {
    .language-dropdown.desktop-only-icon {
        display: none;
    }
}