/* ============================================
   Raptiye.net — Corkboard Theme CSS
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    /* UI Theme Defaults — Warm Timber / Walnut */
    --theme-nav-bg: rgba(22, 17, 12, 0.97);
    --theme-sidebar-bg: rgba(32, 24, 16, 0.95);
    --theme-sidebar-border: #B8860B;
    --theme-modal-bg: #1A1310;
    --theme-modal-border: #C49A6C;
    --theme-card-bg: rgba(255, 255, 255, 0.06);
    --theme-accent: linear-gradient(135deg, #B8860B, #D4A04A);
    --theme-accent-hover: rgba(184, 134, 11, 0.4);

    --cork: #C49A6C;
    --cork-light: #D4A04A;
    --cork-dark: #B8860B;
    --cork-border: #A0783C;
    --board-frame: #2E1F10;
    --board-frame-light: #463218;

    --note-yellow: #FFF9C4;
    --note-pink: #F8BBD0;
    --note-green: #C8E6C9;
    --note-blue: #BBDEFB;
    --note-orange: #FFE0B2;
    --note-purple: #E1BEE7;

    --pin-red: #E53935;
    --pin-green: #43A047;
    --pin-blue: #1E88E5;
    --pin-yellow: #FDD835;

    --priority-urgent: #E53935;
    --priority-normal: #FF9800;
    --priority-low: #4CAF50;

    --text-dark: #3E2723;
    --text-medium: #5D4037;
    --text-light: #8D6E63;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-note: 3px 3px 7px rgba(0, 0, 0, 0.2), 1px 1px 3px rgba(0, 0, 0, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-handwriting: 'Kalam', cursive;
    --font-handwriting-alt: 'Patrick Hand', cursive;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 60px;
    --theme-text-sidebar: #fff;
    --theme-text-sidebar-muted: rgba(255, 255, 255, 0.6);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background: #120E09;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

/* ---- Utility ---- */
.hidden {
    display: none !important;
}

/* ============================================
   AUTH SCREEN
   ============================================ */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #120E09 0%, #1A1310 30%, #2E1F10 60%, #0E0B07 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.floating-pin {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatPin 6s ease-in-out infinite;
}

@keyframes floatPin {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(10deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-25px) rotate(8deg);
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--theme-card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-pin {
    font-size: 2.5rem;
    animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.auth-logo h1 {
    font-family: var(--font-handwriting);
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-logo h1 span {
    color: var(--cork-light);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-family: var(--font-handwriting-alt);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeSlideUp 0.4s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.form-group label i {
    width: 16px;
    margin-right: 4px;
    font-size: 0.8rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--cork-light);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(212, 181, 122, 0.15);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 44px;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.toggle-pass:hover {
    color: rgba(255, 255, 255, 0.7);
}

.password-strength {
    height: 3px;
    margin-top: 6px;
    border-radius: 2px;
    transition: var(--transition);
}

.btn-primary {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--cork-dark), var(--cork));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    background: transparent;
    position: relative;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    backdrop-filter: blur(24px);
}

.btn-google {
    width: 100%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--cork-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-switch a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Code Inputs (Verify/Reset) */
.code-inputs {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 5px;
}

.code-inputs input {
    width: 45px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: monospace;
    transition: var(--transition);
}

.code-inputs input:focus {
    border-color: var(--cork-light);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.2);
    outline: none;
}

/* ============================================
   MAIN APP
   ============================================ */
.app-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Top Navigation ---- */
.top-nav {
    height: var(--nav-height);
    background: var(--theme-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--theme-sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
}

.nav-logo>span:first-child {
    font-size: 1.4rem;
}

.nav-logo-text {
    font-family: var(--font-handwriting);
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
}

.nav-logo-text .accent {
    color: var(--cork-light);
}

.nav-center {
    flex: 1;
    text-align: center;
}

.board-title-display {
    font-family: var(--font-handwriting);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--theme-accent);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--theme-accent-hover);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--cork-light);
    background: linear-gradient(135deg, var(--cork-dark), var(--cork));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.user-avatar:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--theme-modal-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#dropdownName {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.dropdown-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.user-dropdown button,
.user-dropdown select {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.user-dropdown button i {
    font-size: 1.1rem;
    color: var(--cork-light);
}



/* ============================================
   UNIFIED CIRCLE NAV BUTTONS
   ============================================ */
.circle-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.circle-nav-btn i {
    transition: transform 0.3s ease;
}

.circle-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.circle-nav-btn:hover i {
    transform: rotate(12deg);
}


.user-avatar-btn .avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-family: var(--font-handwriting);
    font-size: 1.2rem;
}

/* Update Nav Search Wrapper inside Action Menu */
/* Removed duplicate nav-search-box rules */

.notification-wrapper {
    position: relative;
}

/* Adjust Notification Panel Position when inside floating menu */
.notification-panel {
    top: calc(100% + 15px);
}

@media (max-width: 768px) {
    .nav-logo-text {
        font-size: 1rem;
    }

    .board-title-display {
        max-width: 150px;
        font-size: 1rem;
    }

    .circle-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }


    .nav-search-box {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    .lang-selector {
        padding: 6px 12px;
        gap: 4px;
    }
}


.dropdown-header {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.dropdown-header span:first-child {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-email {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.user-dropdown button {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-selector {
    display: flex;
    padding: 8px 16px;
    gap: 8px;
    justify-content: flex-start;
}

.lang-btn {
    width: auto !important;
    flex: 1;
    padding: 6px 4px !important;
    text-align: center !important;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid transparent !important;
    font-size: 0.8rem !important;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* ---- Boards Modal (formerly Sidebar) ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    max-height: 100vh;
    z-index: 900;
    pointer-events: none;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    border-radius: 0 24px 24px 0;
    box-shadow: var(--shadow-xl);
}

.sidebar.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 890;
}

.sidebar.open~.sidebar-overlay,
.sidebar.open+.sidebar-overlay,
.sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.sidebar-content {
    height: 100%;
    background: var(--theme-modal-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: var(--radius-md);
    width: calc(100% - 40px);
}
.theme-minimalist .sidebar-tabs,
.theme-light-wood .sidebar-tabs {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--theme-text-sidebar-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-tab:hover {
    color: var(--theme-text-sidebar);
    background: rgba(150,150,150,0.1);
}

.sidebar-tab.active {
    background: rgba(150,150,150,0.2);
    color: var(--theme-text-sidebar);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-tab-content {
    display: none;
}

.sidebar-tab-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Media Manager UI */
.media-quota-box {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.quota-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--theme-text-sidebar-muted);
    margin-bottom: 8px;
}
.quota-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.quota-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}
.quota-bar-fill.danger {
    background: #e57373;
}

.media-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(150, 150, 150, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}
.media-item:hover {
    background: rgba(150, 150, 150, 0.1);
}
.media-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
    text-decoration: none;
    cursor: pointer;
    color: var(--theme-text-sidebar);
}
.media-item-left:hover .media-filename {
    color: var(--primary-light, #ffd54f);
    text-decoration: underline;
}
.media-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(150,150,150,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--theme-text-sidebar-muted);
}
.media-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.media-filename {
    font-size: 0.95rem;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    transition: var(--transition);
}
.media-meta {
    font-size: 0.8rem;
    color: var(--theme-text-sidebar-muted);
}
.media-delete-btn {
    background: transparent;
    border: none;
    color: #e57373;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}
.media-delete-btn:hover {
    background: rgba(229, 115, 115, 0.1);
}

.sidebar-close {
    display: block;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.sidebar-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.boards-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

/* Inline editing */
.board-title-display.editing,
.category-title.editing {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a1a !important;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    outline: 2px solid var(--cork-light);
    outline-offset: 2px;
    min-width: 60px;
    cursor: text !important;
    text-shadow: none !important;
}

.board-title-display {
    transition: var(--transition);
}

.board-title-display:hover:not(.editing) {
    opacity: 0.8;
}

/* Board item progress bar */
.board-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.board-item-info .board-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.board-progress-bar {
    height: 100%;
    background: var(--cork-light);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Notification bell */
.notification-wrapper {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E53935;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    animation: pulseUrgent 2s ease-in-out infinite;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: #2C1E0E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    z-index: 600;
}

.notification-panel.show {
    display: block;
    animation: fadeSlideUp 0.2s ease;
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-panel-header h4 {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.notification-list {
    overflow-y: auto;
    max-height: 340px;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(196, 162, 101, 0.08);
    border-left: 3px solid var(--cork-light);
}

.notification-item .notif-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-item .notif-message {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    line-height: 1.3;
}

.notification-item .notif-time {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    margin-top: 4px;
}

.notification-item .notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notif-accept-btn,
.notif-reject-btn {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.notif-accept-btn {
    background: var(--priority-low);
    color: #fff;
}

.notif-reject-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.notification-empty {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.boards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-bottom: 16px;
}

.board-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.board-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.board-item.active {
    background: rgba(196, 162, 101, 0.15);
    color: var(--cork-light);
    border: 1px solid var(--cork-light);
}

.board-item .board-icon {
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.board-item .board-title-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    padding-right: 8px;
}

.board-item .board-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}

.board-item .board-actions {
    display: none;
    gap: 8px;
    margin-left: auto;
}

.board-item:hover .board-actions {
    display: flex;
}

.board-item:hover .board-count {
    display: none;
}

.board-item .board-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.board-item .board-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.add-board-btn {
    padding: 12px 14px;
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.add-board-btn:hover {
    border-color: var(--cork-light);
    color: var(--cork-light);
    background: rgba(196, 162, 101, 0.05);
}

/* ============================================
   CORKBOARD AREA
   ============================================ */
.corkboard-area {
    margin-top: var(--nav-height);
    flex: 1;
    min-height: calc(100vh - var(--nav-height));
    background:
        repeating-conic-gradient(rgba(0, 0, 0, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px,
        linear-gradient(135deg,
            #C4A265 0%, #D4B57A 15%, #BF9B55 30%,
            #CDAE6B 50%, #C19E5C 65%, #D2B274 80%,
            #BAA060 100%);
    position: relative;
    overflow-y: auto;
    padding: 24px;
    transition: margin-top 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

/* Focus Mode Adjustments */
body.focus-mode .top-nav {
    transform: translateY(-100%);
}

body.focus-mode .corkboard-area {
    margin-top: 0;
    min-height: 100vh;
    padding: 0;
}

body.focus-mode .corkboard-area::before {
    top: 0;
}

body.focus-mode .corkboard-area::after {
    top: 0;
    border-width: 0;
    pointer-events: none;
}

body.focus-mode .corkboard {
    padding: 20px;
    min-height: 100vh;
}

.focus-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
    opacity: 0.6;
}

.focus-mode-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
    opacity: 1;
}

/* Corkboard texture overlay */
.corkboard-area::before {
    content: '';
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 105, 20, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 105, 20, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(100, 80, 30, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Board frame border */
.corkboard-area::after {
    content: '';
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid var(--board-frame);
    border-top: 4px solid var(--board-frame);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15),
        inset 2px 2px 0 var(--board-frame-light);
    pointer-events: none;
    z-index: 1;
}

.corkboard {
    position: relative;
    z-index: 2;
}

/* ---- Category Section ---- */
.category-section {
    margin-bottom: 32px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 16px;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(93, 78, 55, 0.4), transparent);
    z-index: 0;
}

.category-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.2), inset 0 2px 3px rgba(255, 255, 255, 0.3);
}

.category-title {
    font-family: var(--font-handwriting);
    font-size: 1.15rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.4);
    padding: 4px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.category-actions {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.category-header:hover .category-actions {
    opacity: 1;
}

.category-actions button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: var(--text-medium);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.category-actions button:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

.category-task-count {
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.35);
    padding: 2px 10px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Add Category Button */
.add-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(93, 78, 55, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-family: var(--font-handwriting);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
}

.add-category-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: var(--cork-dark);
    transform: translateY(-1px);
}

/* ---- Task Cards Grid ---- */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 4px;
}

/* ---- Sticky Note Card ---- */
.sticky-note {
    position: relative;
    padding: 28px 18px 18px;
    border-radius: 2px;
    box-shadow: var(--shadow-note);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    transform-origin: center top;
    user-select: none;
    overflow: visible;
}

/* Slight random rotation for realism */
.sticky-note:nth-child(odd) {
    transform: rotate(-0.8deg);
}

.sticky-note:nth-child(even) {
    transform: rotate(0.5deg);
}

.sticky-note:nth-child(3n) {
    transform: rotate(-0.3deg);
}

.sticky-note:nth-child(4n+1) {
    transform: rotate(1deg);
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.03) translateY(-4px) !important;
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.25), 2px 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Paper texture */
.sticky-note::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 30%,
            transparent 70%,
            rgba(0, 0, 0, 0.03) 100%);
    pointer-events: none;
    border-radius: 2px;
}

/* Folded corner effect */
.sticky-note::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.06) 50%);
    border-radius: 0 0 2px 0;
    pointer-events: none;
}

/* Push Pin */
.note-pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    z-index: 5;
}

.note-pin::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35),
        inset 0 -2px 3px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.note-pin::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, #888, #666);
    border-radius: 0 0 1px 1px;
}

.note-pin.pin-red::before {
    background: radial-gradient(circle at 30% 30%, #FF5252, #C62828);
}

.note-pin.pin-green::before {
    background: radial-gradient(circle at 30% 30%, #66BB6A, #2E7D32);
}

.note-pin.pin-blue::before {
    background: radial-gradient(circle at 30% 30%, #42A5F5, #1565C0);
}

.note-pin.pin-yellow::before {
    background: radial-gradient(circle at 30% 30%, #FFEE58, #F9A825);
}

.note-pin.pin-purple::before {
    background: radial-gradient(circle at 30% 30%, #AB47BC, #6A1B9A);
}

/* Priority Badge */
.note-priority {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-ui);
}

.note-priority.urgent {
    background: var(--priority-urgent);
    color: #fff;
    animation: pulseUrgent 2s ease-in-out infinite;
}

.note-priority.normal {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-medium);
}

.note-priority.low {
    background: var(--priority-low);
    color: #fff;
}

@keyframes pulseUrgent {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Note Content */
.note-title {
    font-family: var(--font-handwriting);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}

.note-description {
    font-family: var(--font-handwriting-alt);
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.45;
    flex: 1;
    word-break: break-word;
    opacity: 0.85;
    max-height: 80px;
    overflow: hidden;
}

.note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.note-tag {
    font-size: 0.65rem;
    padding: 1px 7px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: var(--text-medium);
    font-family: var(--font-ui);
    font-weight: 500;
}

.note-date {
    font-size: 0.7rem;
    color: var(--text-light);
    font-family: var(--font-ui);
    white-space: nowrap;
}

.note-date.overdue {
    color: var(--priority-urgent);
    font-weight: 600;
}

/* Note Actions */
.note-actions {
    position: absolute;
    top: 6px;
    left: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.sticky-note:hover .note-actions {
    opacity: 1;
}

.note-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-medium);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-action-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.note-action-btn.complete-btn.completed {
    background: var(--priority-low);
    color: #fff;
}

/* Completed state */
.sticky-note.completed {
    opacity: 0.6;
}

.sticky-note.completed .note-title {
    text-decoration: line-through;
}

/* Image Stamps */
.note-images {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.image-stamp {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
    background: #f0f0f0;
}

.extra-files-stamp {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.extra-files-stamp:hover,

.image-stamp:hover {
    transform: scale(1.1) rotate(3deg);
    z-index: 5;
}

.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.image-upload-area:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.view-images-container .image-stamp {
    width: 80px;
    height: 80px;
    border-width: 3px;
}

/* Add Task Card */
.add-task-card {
    min-height: 140px;
    border: 2px dashed rgba(93, 78, 55, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
    font-family: var(--font-handwriting);
    font-size: 1rem;
    transform: rotate(0deg) !important;
}

.add-task-card:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--cork-dark);
    transform: scale(1.02) !important;
    box-shadow: var(--shadow-sm);
}

.add-task-card i {
    font-size: 1.5rem;
    color: var(--cork-dark);
}

/* ---- Empty State ---- */
.empty-state {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    animation: fadeSlideUp 0.5s ease;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pinBounce 2s ease-in-out infinite;
}

.empty-state h3 {
    font-family: var(--font-handwriting);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-medium);
    font-family: var(--font-handwriting-alt);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.empty-state .btn-primary {
    width: auto;
    display: inline-flex;
    padding: 12px 32px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}



.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--theme-modal-bg);
    border: 1px solid var(--theme-modal-border);
    border-radius: 0 24px 24px 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-card {
    transform: translateX(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
}

.modal-card form {
    padding: 15px 24px 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--theme-modal-bg);
    color: #fff;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
}

.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.color-dot:hover {
    transform: scale(1.12);
}

.color-dot.active {
    border-color: var(--cork-light);
    transform: scale(1.08);
    box-shadow: 0 0 0 2px rgba(212, 181, 122, 0.4);
}

.form-group input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.modal-footer .btn-primary {
    width: auto;
    padding: 10px 24px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    cursor: pointer;
}

.toast.success {
    background: linear-gradient(135deg, #2E7D32, #43A047);
}

.toast.error {
    background: linear-gradient(135deg, #C62828, #E53935);
}

.toast.info {
    background: linear-gradient(135deg, #1565C0, #1E88E5);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 30, 14, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.pin-spin {
    font-size: 3rem;
    display: inline-block;
    animation: spinPin 1.2s linear infinite;
}

@keyframes spinPin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    font-family: var(--font-handwriting);
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-logo h1 {
        font-size: 1.8rem;
    }

    .nav-logo-text {
        display: none;
    }

    .board-title-display {
        max-width: 150px;
        font-size: 1rem;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-close {
        display: block;
    }

    .corkboard-area {
        padding: 16px;
    }

    .corkboard-area::after {
        border-width: 4px;
    }

    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .sticky-note {
        min-height: 120px;
        padding: 24px 14px 14px;
    }

    .note-title {
        font-size: 0.95rem;
    }

    .note-description {
        font-size: 0.82rem;
        max-height: 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-card {
        max-height: 85vh;
        border-radius: var(--radius-md);
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }

    .category-actions {
        opacity: 1;
    }

    .note-actions {
        opacity: 1;
    }
}

@media (max-width: 400px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .sticky-note {
        transform: rotate(0deg) !important;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 105, 20, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 105, 20, 0.5);
}

/* ---- Search Bar ---- */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-box {
    display: flex;
    align-items: center;
    background: var(--theme-nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
    pointer-events: none;
    backdrop-filter: blur(12px);
    z-index: 10;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow-md);
}

.nav-search-wrapper.active .nav-search-box {
    width: 280px;
    opacity: 1;
    pointer-events: all;
    border-color: var(--theme-sidebar-border);
}

.nav-search-wrapper.active #searchToggleBtn {
    background: rgba(255, 255, 255, 0.2);
}

.nav-search-box input {
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.nav-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-clear-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 0.8rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-clear-btn:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .nav-search-wrapper.active .nav-search-box {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        background: var(--theme-nav-bg);
        border: none;
        border-bottom: 2px solid var(--theme-sidebar-border);
        transform: none;
        margin-left: 0;
        z-index: 99;
    }

    .nav-search-box input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* ---- Selection ---- */
::selection {
    background: rgba(196, 162, 101, 0.3);
}

/* ============================================
   VIEW TASK MODAL
   ============================================ */
.view-task-modal {
    max-width: 600px;
    width: 95%;
    padding: 30px;
    background: var(--note-yellow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: visible;
    margin: auto;
    max-height: 85vh;
}

.view-task-content {
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    word-break: break-word;
    overflow-wrap: break-word;
    padding-right: 5px; /* for scrollbar */
}

/* Fix element colors inside note-yellow background */
.view-task-modal .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.view-task-modal .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Add a tape piece at the top */
.view-task-modal::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 10;
}

.view-task-modal .modal-header {
    border: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.view-task-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.view-status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
    font-weight: 600;
}

.view-status-badge.completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.view-task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-action-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: var(--text-dark);
}

.view-task-modal .modal-close {
    margin-left: 5px;
}

.view-title {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.meta-item i {
    opacity: 0.7;
}

.meta-item.no-category,
.meta-item.no-date {
    opacity: 0.5;
}

.meta-item.overdue {
    color: #C62828;
    background: #FFEBEE;
    font-weight: 600;
}

.view-description-container {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.view-description {
    font-family: var(--font-handwriting-alt);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-medium);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.view-description.null-desc {
    font-style: italic;
    opacity: 0.6;
}

.view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* ============================================
   NEW UI ADJUSTMENTS
   ============================================ */

/* View Task Modal Close Button (Outside) */
.view-task-close-outside {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100;
}

.view-task-close-outside:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Color Picker adjustments (1 row) */
.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 4px;
}

/* Custom color input removed */

/* Base style for the corkboard area backgrounds */
.corkboard-area {
    transition: background 0.4s ease;
}

/* Theme: Oak (Meşe) */
.theme-oak {
    --theme-nav-bg: rgba(110, 85, 45, 0.95);
    --theme-sidebar-bg: rgba(125, 95, 50, 0.9);
    --theme-sidebar-border: #a47a40;
    --theme-modal-bg: #6e552d;
    --theme-modal-border: #a47a40;
    --theme-accent: linear-gradient(135deg, #ba8848, #d4a058);
    --theme-accent-hover: rgba(186, 136, 72, 0.5);

    background:
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0px, transparent 1px, transparent 30px, rgba(0,0,0,0.05) 31px),
        linear-gradient(135deg, #b88d51 0%, #aa7e42 50%, #9a6d34 100%);
    --board-frame: #5e4220;
    --board-frame-light: #7e5a2c;
}
.theme-oak::before { background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.2) 100%); }
.theme-oak .category-title { color: #fff; background: rgba(0, 0, 0, 0.15); }

/* Theme: Spruce (Ladin) */
.theme-spruce {
    --theme-nav-bg: rgba(65, 46, 28, 0.95);
    --theme-sidebar-bg: rgba(75, 52, 32, 0.9);
    --theme-sidebar-border: #563920;
    --theme-modal-bg: #412e1c;
    --theme-modal-border: #563920;
    --theme-accent: linear-gradient(135deg, #6c4d32, #856142);
    --theme-accent-hover: rgba(108, 77, 50, 0.5);

    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 2px, transparent 20px, rgba(255,255,255,0.03) 22px),
        linear-gradient(135deg, #66472b 0%, #563920 50%, #462c16 100%);
    --board-frame: #2d1c0c;
    --board-frame-light: #4c3017;
}
.theme-spruce::before { background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%); }
.theme-spruce .category-title { color: #fff; background: rgba(0, 0, 0, 0.2); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.theme-spruce .category-header::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }

/* Theme: Birch (Huş) */
.theme-birch {
    --theme-nav-bg: rgba(200, 185, 155, 0.95);
    --theme-sidebar-bg: rgba(210, 195, 165, 0.9);
    --theme-sidebar-border: #b8a88a;
    --theme-modal-bg: #d2c3a5;
    --theme-modal-border: #b8a88a;
    --theme-accent: linear-gradient(135deg, #c0b090, #d6c6a7);
    --theme-accent-hover: rgba(192, 176, 144, 0.5);
    --theme-text-sidebar: #4a4030;
    --theme-text-sidebar-muted: rgba(74, 64, 48, 0.65);

    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.05) 100%),
        linear-gradient(135deg, #d8ceb4 0%, #ccbe9d 50%, #bcae8a 100%);
    --board-frame: #bba988;
    --board-frame-light: #d6c8ad;
    color: #3e3322;
}
.theme-birch .nav-menu-btn, .theme-birch .nav-logo-text, .theme-birch .board-title-display, .theme-birch .modal-header h3, .theme-birch .sidebar-header h3, .theme-birch .form-group label, .theme-birch .board-item, .theme-birch .share-modal, .theme-birch .share-modal h4, .theme-birch .share-modal p, .theme-birch .share-modal .modal-close, .theme-birch .modal-close {
    color: #4a4030;
}
.theme-birch .circle-nav-btn { background: rgba(0, 0, 0, 0.1); color: #4a4030; }
.theme-birch .circle-nav-btn:hover { background: rgba(0, 0, 0, 0.15); }
.theme-birch .category-title { color: #4a4030; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(0,0,0,0.05); }
.theme-birch .nav-search-box input, .theme-birch .modal-card input, .theme-birch .modal-card textarea, .theme-birch .modal-card select { background: rgba(255,255,255,0.3); border: 1px solid rgba(0,0,0,0.1); color: #4a4030; }
.theme-birch .nav-search-box input::placeholder, .theme-birch .modal-card input::placeholder, .theme-birch .modal-card textarea::placeholder { color: rgba(74, 64, 48, 0.5); }
.theme-birch .board-item { background: rgba(255,255,255,0.2); border: 1px solid rgba(0,0,0,0.1); color: #4a4030; }
.theme-birch .board-item:hover, .theme-birch .board-item.active { background: rgba(255,255,255,0.4); border-color: rgba(0,0,0,0.2); color: #2a2010; }
.theme-birch .board-item .board-title-text { color: #4a4030; }
.theme-birch .board-item .board-icon { color: #4a4030; background: rgba(0,0,0,0.05); }
.theme-birch .dropdown-header span:first-child, .theme-birch .user-dropdown button { color: #4a4030; }
.theme-birch .dropdown-email, .theme-birch .board-group-label { color: rgba(74, 64, 48, 0.6); }
.theme-birch .auth-card { background: rgba(255, 255, 255, 0.4); border-color: rgba(0, 0, 0, 0.1); color: #4a4030; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1); }
.theme-birch .auth-card p, .theme-birch .auth-subtitle { color: rgba(74, 64, 48, 0.8); }
.theme-birch .form-group input { background: rgba(255, 255, 255, 0.6); color: #4a4030; border-color: rgba(0, 0, 0, 0.15); }
.theme-birch .form-group input::placeholder { color: rgba(74, 64, 48, 0.5); }
.theme-birch .btn-primary { background: linear-gradient(135deg, #4a4030, #5a5040); color: #fff; }
.theme-birch .btn-secondary { background: rgba(0, 0, 0, 0.05); color: #4a4030; border-color: rgba(0, 0, 0, 0.1); }
.theme-birch .btn-secondary:hover { background: rgba(0, 0, 0, 0.1); color: #2a2010; }

/* Theme: Jungle (Orman) */
.theme-jungle {
    --theme-nav-bg: rgba(140, 85, 60, 0.95);
    --theme-sidebar-bg: rgba(150, 95, 70, 0.9);
    --theme-sidebar-border: #9a6042;
    --theme-modal-bg: #8c553c;
    --theme-modal-border: #9a6042;
    --theme-accent: linear-gradient(135deg, #a56a48, #c28562);
    --theme-accent-hover: rgba(165, 106, 72, 0.5);

    background:
        linear-gradient(90deg, rgba(0,0,0,0.05) 50%, transparent 50%),
        linear-gradient(135deg, #a06748 0%, #8c553c 50%, #76452e 100%);
    background-size: 40px 100%, 100% 100%;
    --board-frame: #522d1b;
    --board-frame-light: #7a4629;
}
.theme-jungle::before { background: radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.25) 100%); }
.theme-jungle .category-title { color: #fff; background: rgba(0, 0, 0, 0.15); }

/* Theme: Acacia (Akasya) */
.theme-acacia {
    --theme-nav-bg: rgba(160, 80, 50, 0.95);
    --theme-sidebar-bg: rgba(175, 90, 60, 0.9);
    --theme-sidebar-border: #a45030;
    --theme-modal-bg: #a05032;
    --theme-modal-border: #a45030;
    --theme-accent: linear-gradient(135deg, #b8603a, #cf754d);
    --theme-accent-hover: rgba(184, 96, 58, 0.5);

    background: linear-gradient(135deg, #a45a3a 0%, #954c30 50%, #854026 100%);
    --board-frame: #4a403a; /* Grayish bark color */
    --board-frame-light: #6a5a52;
}
.theme-acacia::before {
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 15px, rgba(255,255,255,0.03) 16px);
}
.theme-acacia .category-title { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Theme: Dark Oak (Koyu Meşe) */
.theme-dark-oak {
    --theme-nav-bg: rgba(45, 30, 20, 0.95);
    --theme-sidebar-bg: rgba(55, 35, 25, 0.9);
    --theme-sidebar-border: #382518;
    --theme-modal-bg: #2d1e14;
    --theme-modal-border: #382518;
    --theme-accent: linear-gradient(135deg, #442a18, #5c3c24);
    --theme-accent-hover: rgba(68, 42, 24, 0.5);

    background: linear-gradient(to bottom, #382518, #26160d);
    --board-frame: #180d07;
    --board-frame-light: #2c1a10;
}
.theme-dark-oak::before { background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%); }
.theme-dark-oak .category-title { color: #f0e0d0; background: rgba(255, 255, 255, 0.05); }
.theme-dark-oak .category-header::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); }

/* Theme: Mangrove (Mangrov) */
.theme-mangrove {
    --theme-nav-bg: rgba(100, 35, 40, 0.95);
    --theme-sidebar-bg: rgba(115, 40, 45, 0.9);
    --theme-sidebar-border: #732d33;
    --theme-modal-bg: #642328;
    --theme-modal-border: #732d33;
    --theme-accent: linear-gradient(135deg, #85373d, #a2464d);
    --theme-accent-hover: rgba(133, 55, 61, 0.5);

    background: linear-gradient(135deg, #6c2b30 0%, #5b2126 100%);
    --board-frame: #3d1418;
    --board-frame-light: #521d22;
}
.theme-mangrove::before {
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, transparent 2px, transparent 20px, rgba(0,0,0,0.05) 22px);
}
.theme-mangrove .category-title { color: #fff; background: rgba(0, 0, 0, 0.2); }

/* Theme: Cherry (Kiraz) */
.theme-cherry {
    --theme-nav-bg: rgba(200, 140, 150, 0.95);
    --theme-sidebar-bg: rgba(210, 150, 160, 0.9);
    --theme-sidebar-border: #d49ba5;
    --theme-modal-bg: #c88c96;
    --theme-modal-border: #d49ba5;
    --theme-accent: linear-gradient(135deg, #dfaab3, #eeb8c0);
    --theme-accent-hover: rgba(223, 170, 179, 0.5);
    --theme-text-sidebar: #5a353c;
    --theme-text-sidebar-muted: rgba(90, 53, 60, 0.65);

    background: linear-gradient(135deg, #e4aab3 0%, #d899a2 50%, #ca8a94 100%);
    --board-frame: #a26570;
    --board-frame-light: #c07a87;
    color: #4a282f;
}
.theme-cherry .nav-menu-btn, .theme-cherry .nav-logo-text, .theme-cherry .board-title-display, .theme-cherry .modal-header h3, .theme-cherry .sidebar-header h3, .theme-cherry .form-group label, .theme-cherry .board-item {
    color: #5a353c;
}
.theme-cherry .circle-nav-btn { background: rgba(255, 255, 255, 0.3); color: #5a353c; }
.theme-cherry .circle-nav-btn:hover { background: rgba(255, 255, 255, 0.5); }
.theme-cherry .category-title { color: #5a353c; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255,255,255,0.2); }
.theme-cherry .nav-search-box input, .theme-cherry .modal-card input, .theme-cherry .modal-card textarea, .theme-cherry .modal-card select { background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.5); color: #5a353c; }
.theme-cherry .nav-search-box input::placeholder, .theme-cherry .modal-card input::placeholder, .theme-cherry .modal-card textarea::placeholder { color: rgba(90, 53, 60, 0.6); }
.theme-cherry .board-item { background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.4); }
.theme-cherry .board-item:hover, .theme-cherry .board-item.active { background: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.6); }
.theme-cherry .dropdown-header span:first-child, .theme-cherry .user-dropdown button { color: #5a353c; }
.theme-cherry .dropdown-email, .theme-cherry .board-group-label { color: rgba(90, 53, 60, 0.6); }
.theme-cherry .category-header::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); }

/* Theme: Crimson (Kızıl Meşe) */
.theme-crimson {
    --theme-nav-bg: rgba(100, 40, 55, 0.95);
    --theme-sidebar-bg: rgba(115, 45, 65, 0.9);
    --theme-sidebar-border: #793444;
    --theme-modal-bg: #642837;
    --theme-modal-border: #793444;
    --theme-accent: linear-gradient(135deg, #8a3a4d, #a2465c);
    --theme-accent-hover: rgba(138, 58, 77, 0.5);

    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%),
        linear-gradient(135deg, #702f3e 0%, #5d2431 100%);
    --board-frame: #3b141d;
    --board-frame-light: #521d2a;
}
.theme-crimson::before { background: radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.4) 100%); }
.theme-crimson .category-title { color: #ffebf0; background: rgba(0, 0, 0, 0.2); }

/* Theme: Warped (Eğri Meşe) */
.theme-warped {
    --theme-nav-bg: rgba(35, 90, 85, 0.95);
    --theme-sidebar-bg: rgba(40, 105, 100, 0.9);
    --theme-sidebar-border: #2b6965;
    --theme-modal-bg: #235a55;
    --theme-modal-border: #2b6965;
    --theme-accent: linear-gradient(135deg, #337e79, #3f9892);
    --theme-accent-hover: rgba(51, 126, 121, 0.5);

    background: linear-gradient(135deg, #2b6965 0%, #20504d 100%);
    --board-frame: #1b3d3f;
    --board-frame-light: #245154;
}
.theme-warped::before {
    background: repeating-conic-gradient(rgba(255,255,255,0.02) 0% 10%, transparent 10% 20%) 0 0 / 40px 40px;
}
.theme-warped .category-title { color: #e0f2f1; background: rgba(0, 0, 0, 0.15); }
.theme-warped .category-header::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }

/* Theme: Pale Oak (Açık Meşe) */
.theme-pale-oak {
    --theme-nav-bg: rgba(220, 218, 215, 0.95);
    --theme-sidebar-bg: rgba(230, 228, 225, 0.9);
    --theme-sidebar-border: #d4d1cc;
    --theme-modal-bg: #dcdad7;
    --theme-modal-border: #d4d1cc;
    --theme-accent: linear-gradient(135deg, #a6a39f, #b8b5b0);
    --theme-accent-hover: rgba(166, 163, 159, 0.5);
    --theme-text-sidebar: #333333;
    --theme-text-sidebar-muted: rgba(51, 51, 51, 0.65);

    background: linear-gradient(135deg, #e3e0dc 0%, #dcdad7 50%, #cfcbc7 100%);
    --board-frame: #b5b1ad;
    --board-frame-light: #c8c5c0;
    color: #2a2a2a;
}
.theme-pale-oak .nav-menu-btn, .theme-pale-oak .nav-logo-text, .theme-pale-oak .board-title-display, .theme-pale-oak .modal-header h3, .theme-pale-oak .sidebar-header h3, .theme-pale-oak .form-group label, .theme-pale-oak .board-item, .theme-pale-oak .share-modal, .theme-pale-oak .share-modal h4, .theme-pale-oak .share-modal p, .theme-pale-oak .share-modal .modal-close, .theme-pale-oak .modal-close {
    color: #333333;
}
.theme-pale-oak .circle-nav-btn { background: rgba(0, 0, 0, 0.05); color: #333333; }
.theme-pale-oak .circle-nav-btn:hover { background: rgba(0, 0, 0, 0.1); }
.theme-pale-oak .category-title { color: #333333; background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(0,0,0,0.08); }
.theme-pale-oak .nav-search-box input, .theme-pale-oak .modal-card input, .theme-pale-oak .modal-card textarea, .theme-pale-oak .modal-card select { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.15); color: #333333; }
.theme-pale-oak .nav-search-box input::placeholder, .theme-pale-oak .modal-card input::placeholder, .theme-pale-oak .modal-card textarea::placeholder { color: rgba(51, 51, 51, 0.5); }
.theme-pale-oak .board-item { background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.1); color: #333333; }
.theme-pale-oak .board-item:hover, .theme-pale-oak .board-item.active { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.2); color: #111111; }
.theme-pale-oak .board-item .board-title-text { color: #333333; }
.theme-pale-oak .board-item .board-icon { color: #333333; background: rgba(0,0,0,0.05); }
.theme-pale-oak .dropdown-header span:first-child, .theme-pale-oak .user-dropdown button { color: #333333; }
.theme-pale-oak .dropdown-email, .theme-pale-oak .board-group-label { color: rgba(51, 51, 51, 0.6); }
.theme-pale-oak .category-header::before { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent); }
.theme-pale-oak .auth-card { background: rgba(255, 255, 255, 0.4); border-color: rgba(0, 0, 0, 0.1); color: #2a2a2a; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1); }
.theme-pale-oak .auth-card p, .theme-pale-oak .auth-subtitle { color: rgba(42, 42, 42, 0.8); }
.theme-pale-oak .form-group input { background: rgba(255, 255, 255, 0.6); color: #2a2a2a; border-color: rgba(0, 0, 0, 0.15); }
.theme-pale-oak .form-group input::placeholder { color: rgba(42, 42, 42, 0.5); }
.theme-pale-oak .btn-primary { background: linear-gradient(135deg, #333333, #444444); color: #fff; }
.theme-pale-oak .btn-secondary { background: rgba(0, 0, 0, 0.05); color: #333333; border-color: rgba(0, 0, 0, 0.1); }
.theme-pale-oak .btn-secondary:hover { background: rgba(0, 0, 0, 0.1); color: #111111; }

.board-group-label {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

/* ============================================
   SHARE MODAL
   ============================================ */
.share-modal {
    max-width: 480px;
    height: auto;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    left: auto;
    top: auto;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.show .share-modal {
    transform: translateY(0);
    opacity: 1;
}

.share-modal-body {
    padding: 15px;
}

.share-section {
    text-align: center;
}

.share-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: pinBounce 2s ease-in-out infinite;
}

.share-empty-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.share-permission-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.share-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.share-radio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-radio input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.share-radio input[type="radio"]:checked~.radio-custom {
    border-color: var(--cork-light);
    background: var(--cork-light);
    box-shadow: inset 0 0 0 3px #2C1E0E;
}

.radio-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-radio input[type="radio"]:checked~.radio-label {
    color: #fff;
    font-weight: 500;
}

.share-create-btn {
    margin-top: 4px;
}

.share-link-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
}

.share-link-box input {
    flex: 1;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: var(--cork-light);
    font-size: 0.85rem;
    font-family: monospace;
    outline: none;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--cork-dark), var(--cork));
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.share-copy-btn:hover {
    background: linear-gradient(135deg, var(--cork), var(--cork-light));
}

.share-copy-btn:active {
    transform: scale(0.95);
}

.btn-danger {
    width: 100%;
    padding: 10px 20px;
    background: rgba(229, 57, 53, 0.15);
    color: #EF5350;
    border: 1px solid rgba(229, 57, 53, 0.25);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-danger:hover {
    background: rgba(229, 57, 53, 0.25);
    border-color: rgba(229, 57, 53, 0.4);
    color: #fff;
}

/* Share invite section */
.share-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.share-section-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-section-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    margin-bottom: 14px;
}

.share-invite-section {
    text-align: left !important;
}

.share-invite-form {
    display: flex;
    gap: 8px;
}

.share-invite-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.share-invite-input:focus {
    border-color: var(--cork-light);
    background: rgba(255, 255, 255, 0.12);
}

.share-invite-select {
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.78rem;
    outline: none;
    cursor: pointer;
}

.share-invite-btn {
    padding: 10px 16px !important;
    border-radius: var(--radius-md) !important;
}

.share-owner-info {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-owner-info i {
    color: var(--cork-light);
}

/* ============================================
   SETTINGS PAGE — Canva-Inspired
   ============================================ */
.settings-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #120E09;
    overflow-y: auto;
}

.settings-screen.hidden {
    display: none !important;
}

.settings-container {
    display: flex;
    min-height: 100vh;
}

/* Settings Sidebar */
.settings-sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(22, 17, 12, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.settings-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.settings-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.settings-logo {
    font-family: var(--font-handwriting);
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
}

.settings-nav {
    padding: 16px 12px;
    flex: 1;
}

.settings-nav-group {
    margin-bottom: 24px;
}

.settings-nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 8px;
    margin-bottom: 8px;
}

.settings-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: left;
    margin-bottom: 2px;
}

.settings-nav-item i {
    width: 18px;
    font-size: 0.95rem;
    text-align: center;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.settings-nav-item.active {
    background: rgba(184, 134, 11, 0.15);
    color: #D4A04A;
    font-weight: 500;
}

/* Settings Main */
.settings-main {
    flex: 1;
    padding: 40px 60px;
    max-width: 800px;
}

.settings-page-title {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
    animation: fadeSlideUp 0.3s ease;
}

/* Settings Cards */
.settings-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.settings-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

/* Avatar Section */
.settings-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cork-dark), var(--cork));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Settings Fields */
.settings-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.settings-field-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-field-info label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-field-info span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Edit Forms */
.settings-edit-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-edit-form input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    margin-bottom: 12px;
}

.settings-edit-form input:focus {
    border-color: var(--cork-dark);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.settings-edit-actions {
    display: flex;
    gap: 8px;
}

/* Language Selector in Settings */
.settings-lang-selector {
    margin-top: 8px;
}

.settings-lang-selector select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.settings-lang-selector select:focus {
    border-color: var(--cork-dark);
}

/* Password Form */
.settings-password-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-form-group {
    margin-bottom: 16px;
}

.settings-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.settings-form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.settings-form-group input:focus {
    border-color: var(--cork-dark);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* Social Connection Row */
.settings-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

/* Disconnect Step Flow */
.settings-disconnect-step {
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
    animation: fadeSlideUp 0.3s ease;
}

.settings-social-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-social-info div {
    display: flex;
    flex-direction: column;
}

.settings-social-info strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.settings-social-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Settings Info Text */
.settings-info-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Settings Buttons */
.btn-settings-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--cork-dark), var(--cork));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-settings-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}

.btn-settings-outline {
    padding: 10px 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-settings-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-settings-danger {
    padding: 10px 20px;
    background: rgba(229, 57, 53, 0.12);
    color: #E53935;
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-settings-danger:hover {
    background: rgba(229, 57, 53, 0.2);
    border-color: #E53935;
}

/* Settings Responsive */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 4px;
    }

    .settings-nav-group {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 0;
    }

    .settings-nav-label {
        display: none;
    }

    .settings-nav-item {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .settings-main {
        padding: 24px 16px;
    }

    .settings-page-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .settings-avatar-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .settings-social-row {
        flex-direction: column;
        align-items: flex-start;
    }
}