/* ============================================================
   NEBULA GLASS THEME — Sidebar Unification Edition
   ------------------------------------------------------------
   Changes from previous version:
   • Project section in the sidebar now uses the same recipe as
     the leaderboard / notifications / settings sections — the
     .side-project-card items get control-surface bg, soft
     border, blur(18px) saturate(160%), --radius-md, and the
     translateY(-1px) hover lift.
   • Scrollbar made thinner (6px) and cleaner — no transparent
     padding border, no scroll buttons, Firefox scrollbar-color
     applied universally so inner scroll containers (sidebar,
     project modals) pick it up.
   • Color mode toggle is now structurally identical to the
     standard toggle (.toggle-slider). Section 8's custom dark-
     track / white-thumb styling is gone; .color-mode-toggle and
     .color-mode-toggle-thumb share the same surface tokens as
     every other toggle in the system.
   • Project modal text in light mode bumped to --heading
     (#071a32) — the previous --text (#0f2744) was washing out
     against the translucent modal panel.
   ============================================================ */

/* -----------------------------
   1. THEME TOKENS — LIGHT
   ----------------------------- */
body[data-theme="glass-light"] {
    --bg:        #b7caf0;
    --bg-2:      #e4efff;
    --bg-3:      #8aa3d4;

    --panel:        rgba(255, 255, 255, 0.42);
    --panel-strong: rgba(255, 255, 255, 0.62);
    --surface:      rgba(255, 255, 255, 0.28);
    --surface-2:    rgba(255, 255, 255, 0.48);

    --text:    #0f2744;
    --heading: #071a32;
    --muted:   #304c6c;
    --muted-2: #4a6685;

    --accent:        #2570ee;
    --accent-2:      #1548b8;
    --accent-alt:    #8b5cf6;
    --accent-glow:   rgba(37, 112, 238, 0.40);
    --accent-glow-2: rgba(139, 92, 246, 0.32);
    --progress:      #2570ee;

    --success: #2f9e6c;
    --warning: #c97a14;
    --danger:  #d23a4d;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --card-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 20px 48px rgba(30, 54, 96, 0.14),
        0 4px 12px rgba(30, 54, 96, 0.08);

    --glass-border:      rgba(255, 255, 255, 0.55);
    --glass-border-soft: rgba(255, 255, 255, 0.32);
    --glass-divider:     rgba(15, 39, 68, 0.08);

    --glass-project-card-bg: rgba(255, 255, 255, 0.58);
    --glass-project-surface: rgba(255, 255, 255, 0.78);
    --glass-card-text:       #06131f;
    --glass-card-muted:      rgba(10, 22, 38, 0.72);
    --glass-card-border:     rgba(255, 255, 255, 0.50);
    --glass-card-edge:       inset 0 1px 0 rgba(255, 255, 255, 0.65);

    --glass-control-surface: rgba(255, 255, 255, 0.32);

    --scrollbar-thumb:       rgba(15, 39, 68, 0.22);
    --scrollbar-thumb-hover: rgba(15, 39, 68, 0.38);

    --selection-bg:   rgba(37, 112, 238, 0.28);
    --selection-text: #ffffff;
    --focus-ring:     0 0 0 3px rgba(37, 112, 238, 0.35);

    --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast:    140ms;
    --dur-base:    240ms;
    --dur-slow:    400ms;
}

/* -----------------------------
   1b. THEME TOKENS — DARK (black palette)
   Structural neutrals are now genuine blacks/grays. Accents
   stay blue + violet — on true black they read more cosmic,
   not less, which is what the "nebula" name promises.
   ----------------------------- */
body[data-theme="glass-dark"] {
    --bg:        #0a0a0c;   /* near-black, hair of cool to avoid the dead "TV-off" feel */
    --bg-2:      #141416;
    --bg-3:      #050506;

    --panel:        rgba(24, 24, 26, 0.62);
    --panel-strong: rgba(32, 32, 34, 0.76);
    --surface:      rgba(36, 36, 38, 0.50);
    --surface-2:    rgba(52, 52, 54, 0.58);

    --text:    #eaeaec;
    --heading: #ffffff;
    --muted:   #b6b6b9;
    --muted-2: #909094;

    --accent:        #6faaff;
    --accent-2:      #3f7fde;
    --accent-alt:    #b18cff;
    --accent-glow:   rgba(111, 170, 255, 0.45);   /* nudged up — reads stronger on true black */
    --accent-glow-2: rgba(177, 140, 255, 0.36);
    --progress:      #6faaff;

    --success: #5dd6a0;
    --warning: #f0b056;
    --danger:  #ff6b7e;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --card-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.55),
        0 6px 16px rgba(0, 0, 0, 0.34);

    --glass-border:      rgba(255, 255, 255, 0.14);
    --glass-border-soft: rgba(255, 255, 255, 0.08);
    --glass-divider:     rgba(255, 255, 255, 0.06);

    --glass-project-card-bg: rgba(26, 26, 28, 0.68);
    --glass-project-surface: rgba(48, 48, 50, 0.50);
    --glass-card-text:       #eaeaec;
    --glass-card-muted:      rgba(190, 190, 194, 0.78);
    --glass-card-border:     rgba(255, 255, 255, 0.12);
    --glass-card-edge:       inset 0 1px 0 rgba(255, 255, 255, 0.06);

    --glass-control-surface: rgba(40, 40, 42, 0.46);

    --scrollbar-thumb:       rgba(255, 255, 255, 0.18);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.32);

    --selection-bg:   rgba(111, 170, 255, 0.42);
    --selection-text: #06080d;
    --focus-ring:     0 0 0 3px rgba(111, 170, 255, 0.50);

    --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast:    140ms;
    --dur-base:    240ms;
    --dur-slow:    400ms;
}

/* -----------------------------
   2. BODY
   ----------------------------- */
body[data-theme^="glass"] {
    font-family: 'Rajdhani', 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}

body[data-theme^="glass"] ::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

body[data-theme^="glass"] button,
body[data-theme^="glass"] input,
body[data-theme^="glass"] select,
body[data-theme^="glass"] textarea {
    font-family: inherit;
    letter-spacing: 0.02em;
}

body[data-theme^="glass"] button:focus-visible,
body[data-theme^="glass"] input:focus-visible,
body[data-theme^="glass"] select:focus-visible,
body[data-theme^="glass"] textarea:focus-visible,
body[data-theme^="glass"] [role="button"]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

body[data-theme^="glass"] input::placeholder,
body[data-theme^="glass"] textarea::placeholder {
    color: var(--muted-2);
    opacity: 0.85;
}

/* -----------------------------
   3. PRIMARY GLASS PANELS
   ----------------------------- */
body[data-theme^="glass"] .control-panel-content,
body[data-theme^="glass"] .project-card,
body[data-theme^="glass"] .menu-button,
body[data-theme^="glass"] .menu-dropdown,
body[data-theme^="glass"] .shortcuts-panel,
body[data-theme^="glass"] .shortcuts-toggle,
body[data-theme^="glass"] .side-project-card,
body[data-theme^="glass"] .notification-card,
body[data-theme^="glass"] .auth-card,
body[data-theme^="glass"] .modal-content,
body[data-theme^="glass"] .confirm-dialog,
body[data-theme^="glass"] .saved-view-main,
body[data-theme^="glass"] .archived-project-card,
body[data-theme^="glass"] .command-palette-item,
body[data-theme^="glass"] .theme-card,
body[data-theme^="glass"] .save-status,
body[data-theme^="glass"] .stat-card,
body[data-theme^="glass"] .panel-user-pill {
    background: var(--panel);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition:
        box-shadow var(--dur-base) var(--ease-out),
        transform  var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
    position: relative;
    z-index: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body[data-theme^="glass"] .control-panel-content,
    body[data-theme^="glass"] .project-card,
    body[data-theme^="glass"] .menu-dropdown,
    body[data-theme^="glass"] .modal-content,
    body[data-theme^="glass"] .auth-card,
    body[data-theme^="glass"] .confirm-dialog {
        background: var(--panel-strong);
    }
}

/* -----------------------------
   4. SECONDARY SURFACES
   .color-mode-toggle and its thumb are now part of this list
   so the theme/dark-mode toggle in the sidebar matches the
   hide-completed toggle exactly.
   ----------------------------- */
body[data-theme^="glass"] .view-toolbar-search,
body[data-theme^="glass"] .view-toolbar-select,
body[data-theme^="glass"] .view-toolbar-button,
body[data-theme^="glass"] .task-item,
body[data-theme^="glass"] .task-input,
body[data-theme^="glass"] .task-checkbox,
body[data-theme^="glass"] .project-title-input,
body[data-theme^="glass"] .modal-title-input,
body[data-theme^="glass"] .notes-textarea,
body[data-theme^="glass"] .project-select,
body[data-theme^="glass"] .paste-box,
body[data-theme^="glass"] .paste-button,
body[data-theme^="glass"] .undo-button,
body[data-theme^="glass"] .add-project-button,
body[data-theme^="glass"] .member-row,
body[data-theme^="glass"] .invite-form,
body[data-theme^="glass"] .invite-email-input,
body[data-theme^="glass"] .invite-role-select,
body[data-theme^="glass"] .member-role-select,
body[data-theme^="glass"] .account-form-input,
body[data-theme^="glass"] .account-stat-card,
body[data-theme^="glass"] .panel-avatar,
body[data-theme^="glass"] .account-avatar,
body[data-theme^="glass"] .progress-bar-container,
body[data-theme^="glass"] .modal-tab,
body[data-theme^="glass"] .modal-add-task,
body[data-theme^="glass"] .modal-add-task-top,
body[data-theme^="glass"] .menu-dropdown-item,
body[data-theme^="glass"] .toggle-slider,
body[data-theme^="glass"] .toggle-slider:before,
body[data-theme^="glass"] .color-mode-toggle,
body[data-theme^="glass"] .color-mode-toggle-thumb {
    background: var(--surface);
    box-shadow: none;
    border: 1px solid var(--glass-border-soft);
    transition:
        background    var(--dur-fast) var(--ease-out),
        border-color  var(--dur-fast) var(--ease-out),
        box-shadow    var(--dur-fast) var(--ease-out),
        transform     var(--dur-fast) var(--ease-out);
}

body[data-theme^="glass"] .view-toolbar-search:hover,
body[data-theme^="glass"] .view-toolbar-select:hover,
body[data-theme^="glass"] .account-form-input:hover,
body[data-theme^="glass"] .task-input:hover {
    background: var(--surface-2);
    border-color: var(--glass-border);
}

/* -----------------------------
   5. INTERACTIVE / HOVER STATES
   ----------------------------- */
body[data-theme^="glass"] .menu-button.active,
body[data-theme^="glass"] .menu-dropdown-item:hover,
body[data-theme^="glass"] .modal-tab.active,
body[data-theme^="glass"] .stat-card.active,
body[data-theme^="glass"] .view-toolbar-button:hover,
body[data-theme^="glass"] .panel-user-pill:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 18px 38px rgba(23, 41, 73, 0.18);
    border-color: var(--glass-border);
}

body[data-theme^="glass"] .project-card:hover,
body[data-theme^="glass"] .theme-card.is-active,
body[data-theme^="glass"] .command-palette-item.is-active {
    transform: translateY(-2px);
    box-shadow:
        var(--glass-card-edge),
        0 28px 56px rgba(23, 41, 73, 0.22),
        0 8px 18px rgba(23, 41, 73, 0.10);
}

/* -----------------------------
   6. PRIMARY ACCENT BUTTONS — flat
   No inset highlight (that was the bezel). No layered sheen or
   fresnel gradients (those simulated curved glass). No colored
   drop shadow (that lifted the button off the surface). No
   translateY on hover (that was 3D motion). What remains: a
   single accent gradient, a thin glass edge, white text.
   Hover/active are flat brightness shifts only.
   ----------------------------- */
body[data-theme^="glass"] .task-checkbox.checked,
body[data-theme^="glass"] .add-project-button,
body[data-theme^="glass"] .paste-button,
body[data-theme^="glass"] .modal-done-btn,
body[data-theme^="glass"] .modal-add-task-top,
body[data-theme^="glass"] .auth-submit,
body[data-theme^="glass"] .invite-submit-btn,
body[data-theme^="glass"] .activate-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: none;
    transition:
        filter       var(--dur-fast) var(--ease-out),
        background   var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out);
}

body[data-theme^="glass"] .add-project-button:hover,
body[data-theme^="glass"] .paste-button:hover,
body[data-theme^="glass"] .modal-done-btn:hover,
body[data-theme^="glass"] .modal-add-task-top:hover,
body[data-theme^="glass"] .auth-submit:hover,
body[data-theme^="glass"] .invite-submit-btn:hover,
body[data-theme^="glass"] .activate-button:hover {
    filter: brightness(1.08);
    border-color: rgba(255, 255, 255, 0.24);
}

body[data-theme^="glass"] .add-project-button:active,
body[data-theme^="glass"] .paste-button:active,
body[data-theme^="glass"] .modal-done-btn:active,
body[data-theme^="glass"] .modal-add-task-top:active,
body[data-theme^="glass"] .auth-submit:active,
body[data-theme^="glass"] .invite-submit-btn:active,
body[data-theme^="glass"] .activate-button:active {
    filter: brightness(0.94);
}

body[data-theme^="glass"] .task-checkbox.checked {
    border-color: transparent;
}

/* -----------------------------
   7. BORDER RADII — hierarchical
   .side-project-card no longer in the lg list — it gets --md
   from section 13 to match the sidebar siblings.
   ----------------------------- */
body[data-theme^="glass"] .task-checkbox,
body[data-theme^="glass"] .toggle-slider:before,
body[data-theme^="glass"] .color-mode-toggle-thumb {
    border-radius: var(--radius-sm);
}

body[data-theme^="glass"] .panel-avatar,
body[data-theme^="glass"] .account-avatar,
body[data-theme^="glass"] .panel-user-pill,
body[data-theme^="glass"] .view-toolbar-search,
body[data-theme^="glass"] .view-toolbar-select,
body[data-theme^="glass"] .view-toolbar-button,
body[data-theme^="glass"] .task-item,
body[data-theme^="glass"] .menu-dropdown-item,
body[data-theme^="glass"] .modal-tab,
body[data-theme^="glass"] .account-form-input,
body[data-theme^="glass"] .account-stat-card {
    border-radius: var(--radius-md);
}

body[data-theme^="glass"] .theme-card,
body[data-theme^="glass"] .saved-view-main,
body[data-theme^="glass"] .notification-card,
body[data-theme^="glass"] .archived-project-card,
body[data-theme^="glass"] .project-card,
body[data-theme^="glass"] .auth-card,
body[data-theme^="glass"] .modal-content,
body[data-theme^="glass"] .confirm-dialog {
    border-radius: var(--radius-lg);
}

body[data-theme^="glass"] .panel-avatar-fallback,
body[data-theme^="glass"] .account-avatar-fallback {
    color: var(--accent);
}

/* -----------------------------
   8. (intentionally empty)
   The custom .color-mode-toggle styling has been removed —
   the toggle now uses the same surface tokens as every other
   toggle in the system (see section 4).
   ----------------------------- */

/* -----------------------------
   9. PROJECT CARDS
   ----------------------------- */
body[data-theme^="glass"] .project-card {
    background: var(--glass-project-card-bg);
    border: 1px solid var(--glass-card-border);
    box-shadow:
        var(--glass-card-edge),
        0 18px 42px rgba(23, 41, 73, 0.16),
        0 4px 10px rgba(23, 41, 73, 0.06);
    overflow: hidden;
    background-clip: padding-box;
}

body[data-theme^="glass"] .project-card .task-item,
body[data-theme^="glass"] .project-card .task-input,
body[data-theme^="glass"] .project-card .progress-bar-container,
body[data-theme^="glass"] .project-card .project-title-input {
    background: var(--glass-project-surface);
    border: 1px solid var(--glass-card-border);
    box-shadow: none;
}

body[data-theme^="glass"] .project-card .project-title,
body[data-theme^="glass"] .project-card .project-title-input,
body[data-theme^="glass"] .project-card .task-text,
body[data-theme^="glass"] .project-card .progress-text-large,
body[data-theme^="glass"] .project-card .drag-handle,
body[data-theme^="glass"] .project-card .task-drag-handle,
body[data-theme^="glass"] .project-card .edit-button,
body[data-theme^="glass"] .project-card .copy-button,
body[data-theme^="glass"] .project-card .card-delete-button {
    color: var(--glass-card-text);
}

body[data-theme^="glass"] .project-card .project-stats,
body[data-theme^="glass"] .project-card .progress-text,
body[data-theme^="glass"] .project-card .project-last-updated,
body[data-theme^="glass"] .project-card .card-owner-name,
body[data-theme^="glass"] .project-card .task-text.completed {
    color: var(--glass-card-muted);
}

body[data-theme^="glass"] .project-card .task-text.completed {
    text-decoration-color: var(--glass-card-muted);
}

body[data-theme^="glass"] .project-card .card-role,
body[data-theme^="glass"] .project-card .role-badge,
body[data-theme^="glass"] .project-card .role-pill,
body[data-theme^="glass"] .project-card .role-notification,
body[data-theme^="glass"] .project-card .member-badge,
body[data-theme^="glass"] .project-card .card-owner-pill {
    background: var(--glass-project-surface);
    border: 1px solid var(--glass-card-border);
    box-shadow: none;
    color: var(--glass-card-muted);
    border-radius: var(--radius-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* -----------------------------
   10. CONTROL PANEL (sidebar)
   .side-project-card kept here for the base control-surface
   look; section 13 adds blur + radius + hover to fully unify
   it with the leaderboard / notifications / settings items.
   ----------------------------- */
body[data-theme^="glass"] .control-panel .stat-card,
body[data-theme^="glass"] .control-panel .undo-button,
body[data-theme^="glass"] .control-panel .collapse-button,
body[data-theme^="glass"] .control-panel .expand-button,
body[data-theme^="glass"] .control-panel .save-status,
body[data-theme^="glass"] .control-panel .section-count-pill,
body[data-theme^="glass"] .control-panel .side-project-card,
body[data-theme^="glass"] .control-panel .notification-card,
body[data-theme^="glass"] .control-panel .task-item,
body[data-theme^="glass"] .control-panel .panel-user-pill,
body[data-theme^="glass"] .control-panel .panel-avatar {
    background: var(--glass-control-surface);
    border: 1px solid var(--glass-border-soft);
    box-shadow: none;
}

body[data-theme="glass-light"] .control-panel .stat-card,
body[data-theme="glass-light"] .control-panel .undo-button,
body[data-theme="glass-light"] .control-panel .collapse-button,
body[data-theme="glass-light"] .control-panel .expand-button,
body[data-theme="glass-light"] .control-panel .save-status,
body[data-theme="glass-light"] .control-panel .section-count-pill {
    box-shadow: 0 8px 20px rgba(23, 41, 73, 0.10);
}

body[data-theme^="glass"] .control-panel .stat-card,
body[data-theme^="glass"] .control-panel .undo-button,
body[data-theme^="glass"] .control-panel .collapse-button,
body[data-theme^="glass"] .control-panel .expand-button,
body[data-theme^="glass"] .control-panel .save-status,
body[data-theme^="glass"] .control-panel .section-count-pill {
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

body[data-theme^="glass"] .control-panel .stat-card.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06));
    border-color: var(--accent);
    box-shadow:
        0 16px 32px var(--accent-glow),
        0 8px 20px var(--accent-glow-2);
}

body[data-theme^="glass"] .control-panel .stat-card.active .stat-value,
body[data-theme^="glass"] .control-panel .stat-card.active .stat-label {
    color: var(--accent) !important;
}

body[data-theme^="glass"] .control-panel .add-project-button,
body[data-theme^="glass"] .control-panel .paste-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

body[data-theme^="glass"] .control-panel .undo-button,
body[data-theme^="glass"] .control-panel .collapse-button,
body[data-theme^="glass"] .control-panel .expand-button {
    color: var(--heading);
}

body[data-theme^="glass"] .control-panel .undo-button:hover,
body[data-theme^="glass"] .control-panel .collapse-button:hover,
body[data-theme^="glass"] .control-panel .expand-button:hover {
    background: var(--surface-2);
}

/* -----------------------------
   11. MODALS
   Project modal text bumped to --heading in light mode for
   stronger contrast on the translucent panel. Inputs and
   textareas explicitly colored too — they don't inherit
   text color by default.
   ----------------------------- */
body[data-theme^="glass"] .account-modal-content,
body[data-theme^="glass"] .ui-options-modal-content,
body[data-theme^="glass"] .modal-content,
body[data-theme^="glass"] .theme-card {
    overflow: hidden;
    background-clip: padding-box;
}

body[data-theme="glass-light"] .modal-content,
body[data-theme="glass-light"] .modal-content .modal-tab,
body[data-theme="glass-light"] .modal-content label {
    color: var(--heading);
}

body[data-theme="glass-light"] .modal-content input,
body[data-theme="glass-light"] .modal-content textarea,
body[data-theme="glass-light"] .modal-content select,
body[data-theme="glass-light"] .modal-title-input,
body[data-theme="glass-light"] .notes-textarea {
    color: var(--heading);
}

body[data-theme^="glass"] .account-modal-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body[data-theme^="glass"] .account-modal-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body[data-theme^="glass"] .modal-tabs {
    border-bottom: none;
}

body[data-theme^="glass"] .modal-tab {
    margin-bottom: 0;
}

body[data-theme^="glass"] .hide-completed-toggle {
    padding-inline: 0 !important;
}

/* -----------------------------
   12. SCROLLBAR — thin glass-themed
   6px clean rounded bar. No transparent padding-border, no
   scroll buttons. Firefox styling applied universally so
   inner scroll containers (sidebar, modals) get it too,
   not just the body.
   ----------------------------- */
body[data-theme^="glass"] ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body[data-theme^="glass"] ::-webkit-scrollbar-track,
body[data-theme^="glass"] ::-webkit-scrollbar-corner {
    background: transparent;
}

body[data-theme^="glass"] ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    transition: background var(--dur-fast) var(--ease-out);
}

body[data-theme^="glass"] ::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

body[data-theme^="glass"] ::-webkit-scrollbar-button {
    display: none;
}

body[data-theme^="glass"],
body[data-theme^="glass"] * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* -----------------------------
   13. SIDEBAR — unified section styling
   Project section now uses the same recipe as the leaderboard,
   notifications, and settings sections. All four are siblings
   visually — no card wrapper, items get control-surface +
   blur(18px) + --radius-md + hover lift.
   ----------------------------- */

/* Section wrappers — transparent, no card shell */
body[data-theme^="glass"] .leaderboard-summary-card,
body[data-theme^="glass"] .notifications-summary-card,
body[data-theme^="glass"] .settings-panel-card,
body[data-theme^="glass"] .projects-summary-card,
body[data-theme^="glass"] .projects-panel-card,
body[data-theme^="glass"] .sidebar-projects-card,
body[data-theme^="glass"] .projects-section-card {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

/* Section items — single shared recipe.
   The .control-panel .side-project-card selector is intentionally
   more specific so it beats section 10's plainer treatment and
   adds the blur + radius + hover. */
body[data-theme^="glass"] .sidebar-action-button,
body[data-theme^="glass"] .section-action-button,
body[data-theme^="glass"] .leaderboard-item,
body[data-theme^="glass"] .control-panel .side-project-card {
    background: var(--glass-control-surface);
    border: 1px solid var(--glass-border-soft);
    color: var(--heading);
    box-shadow: none;
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition:
        background    var(--dur-fast) var(--ease-out),
        border-color  var(--dur-fast) var(--ease-out),
        transform     var(--dur-fast) var(--ease-out);
}

body[data-theme^="glass"] .sidebar-action-button:hover,
body[data-theme^="glass"] .section-action-button:hover,
body[data-theme^="glass"] .leaderboard-item:hover,
body[data-theme^="glass"] .control-panel .side-project-card:hover {
    background: var(--surface-2);
    border-color: var(--glass-border);
    transform: translateY(-1px);
}

/* -----------------------------
   14. REDUCED MOTION
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
    body[data-theme^="glass"] *,
    body[data-theme^="glass"] *::before,
    body[data-theme^="glass"] *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    body[data-theme^="glass"] .project-card:hover,
    body[data-theme^="glass"] .sidebar-action-button:hover,
    body[data-theme^="glass"] .section-action-button:hover,
    body[data-theme^="glass"] .leaderboard-item:hover,
    body[data-theme^="glass"] .control-panel .side-project-card:hover {
        transform: none;
    }
}


/* ============================================================
   GLASSMORPHISM FLAT OVERRIDES
   ============================================================ */
body[data-theme="glass-light"] {
    --accent: #0077d4;
    --accent-2: #0066bb;
    --accent-alt: #0077d4;
    --accent-glow: rgba(0, 119, 212, 0.16);
    --accent-glow-2: rgba(0, 119, 212, 0.12);
    --progress: #0077d4;
    --card-shadow: none;
}

body[data-theme="glass-dark"] {
    --accent: #0099ff;
    --accent-2: #0088ee;
    --accent-alt: #0099ff;
    --accent-glow: rgba(0, 153, 255, 0.16);
    --accent-glow-2: rgba(0, 153, 255, 0.12);
    --progress: #0099ff;
    --card-shadow: none;
}

body[data-theme^="glass"] .control-panel-content,
body[data-theme^="glass"] .project-card,
body[data-theme^="glass"] .menu-button,
body[data-theme^="glass"] .menu-dropdown,
body[data-theme^="glass"] .shortcuts-panel,
body[data-theme^="glass"] .shortcuts-toggle,
body[data-theme^="glass"] .side-project-card,
body[data-theme^="glass"] .notification-card,
body[data-theme^="glass"] .auth-card,
body[data-theme^="glass"] .modal-content,
body[data-theme^="glass"] .confirm-dialog,
body[data-theme^="glass"] .saved-view-main,
body[data-theme^="glass"] .archived-project-card,
body[data-theme^="glass"] .command-palette-item,
body[data-theme^="glass"] .theme-card,
body[data-theme^="glass"] .save-status,
body[data-theme^="glass"] .stat-card,
body[data-theme^="glass"] .panel-user-pill,
body[data-theme^="glass"] .sidebar-action-button,
body[data-theme^="glass"] .section-action-button,
body[data-theme^="glass"] .leaderboard-item,
body[data-theme^="glass"] .control-panel .side-project-card,
body[data-theme^="glass"] .view-toolbar-button,
body[data-theme^="glass"] .add-project-button,
body[data-theme^="glass"] .paste-button,
body[data-theme^="glass"] .activate-button,
body[data-theme^="glass"] .modal-tab,
body[data-theme^="glass"] .toggle-slider,
body[data-theme^="glass"] .toggle-slider:before,
body[data-theme^="glass"] .color-mode-toggle,
body[data-theme^="glass"] .color-mode-toggle-thumb {
    box-shadow: none !important;
    transform: none !important;
    text-shadow: none !important;
}

body[data-theme^="glass"] .project-card:hover,
body[data-theme^="glass"] .theme-card.is-active,
body[data-theme^="glass"] .command-palette-item.is-active,
body[data-theme^="glass"] .sidebar-action-button:hover,
body[data-theme^="glass"] .section-action-button:hover,
body[data-theme^="glass"] .leaderboard-item:hover,
body[data-theme^="glass"] .control-panel .side-project-card:hover,
body[data-theme^="glass"] .view-toolbar-button:hover,
body[data-theme^="glass"] .add-project-button:hover,
body[data-theme^="glass"] .paste-button:hover,
body[data-theme^="glass"] .activate-button:hover,
body[data-theme^="glass"] .modal-tab.active,
body[data-theme^="glass"] .menu-button.active,
body[data-theme^="glass"] .menu-dropdown-item:hover,
body[data-theme^="glass"] .panel-user-pill:hover {
    background: var(--accent-glow) !important;
    border-color: var(--accent) !important;
    box-shadow: none !important;
    transform: none !important;
}

body[data-theme^="glass"] .project-card,
body[data-theme^="glass"] .leaderboard-item,
body[data-theme^="glass"] .control-panel .side-project-card,
body[data-theme^="glass"] .sidebar-action-button,
body[data-theme^="glass"] .section-action-button,
body[data-theme^="glass"] .notification-card,
body[data-theme^="glass"] .settings-panel-card,
body[data-theme^="glass"] .notifications-summary-card,
body[data-theme^="glass"] .leaderboard-panel-card {
    border-radius: 14px;
}

body[data-theme^="glass"] .sidebar-total-completion-section h3,
body[data-theme^="glass"] .sidebar-total-completion-section .total-percentage,
body[data-theme^="glass"] .sidebar-total-completion-section .total-percentage-label,
body[data-theme^="glass"] .sidebar-total-completion-section .sidebar-completion-stat strong {
    color: var(--accent);
}

body[data-theme^="glass"] .sidebar-total-completion-section .sidebar-completion-stat span {
    color: var(--muted);
}

body[data-theme^="glass"] .control-panel .side-project-card,
body[data-theme^="glass"] .sidebar-action-button,
body[data-theme^="glass"] .section-action-button,
body[data-theme^="glass"] .leaderboard-item,
body[data-theme^="glass"] .notification-card {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

body[data-theme^="glass"] .task-category-tab:hover,
body[data-theme^="glass"] .task-category-create-button:hover,
body[data-theme^="glass"] .task-category-tab.is-active,
body[data-theme^="glass"] .task-category-pill,
body[data-theme^="glass"] .task-tag-pill,
body[data-theme^="glass"] .task-category-create-input {
    border-color: var(--accent);
}

body[data-theme^="glass"] .task-category-tab:hover,
body[data-theme^="glass"] .task-category-create-button:hover,
body[data-theme^="glass"] .task-category-tab.is-active {
    background: var(--accent-glow);
    color: var(--heading);
}

body[data-theme^="glass"] .sidebar-nav-card {
    background: var(--glass-control-surface);
    border: 1px solid var(--glass-border-soft);
    box-shadow: none !important;
    transform: none !important;
}

body[data-theme^="glass"] .sidebar-nav-card:hover,
body[data-theme^="glass"] .sidebar-nav-card.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--heading);
}


/* Round 22 Glassmorphism task card + hover refinement */
body[data-theme^="glass"] .modal-tasks-card {
    background: rgba(20, 20, 24, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

body[data-theme="glass-light"] .modal-tasks-card {
    background: rgba(255,255,255,0.34);
    border-color: rgba(255,255,255,0.34);
}

body[data-theme^="glass"] .task-category-tab-shell .task-category-tab,
body[data-theme^="glass"] .task-category-menu-button,
body[data-theme^="glass"] .task-priority-button,
body[data-theme^="glass"] .task-category-menu-popover,
body[data-theme^="glass"] .task-priority-popover {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: none;
}

body[data-theme^="glass"] .task-category-tab-shell .task-category-tab,
body[data-theme^="glass"] .task-category-menu-button {
    background: rgba(16, 18, 24, 0.82);
    border-color: rgba(255,255,255,0.08);
}

body[data-theme="glass-light"] .task-category-tab-shell .task-category-tab,
body[data-theme="glass-light"] .task-category-menu-button {
    background: rgba(255,255,255,0.48);
    border-color: rgba(255,255,255,0.28);
}

body[data-theme^="glass"] .task-category-tab-shell.is-active .task-category-tab,
body[data-theme^="glass"] .task-category-tab-shell.is-active .task-category-menu-button {
    border-color: var(--accent);
}


/* Round 23 Glassmorphism task tab visual repair */
body[data-theme^="glass"] .task-category-tab-shell {
    background: rgba(16, 18, 24, 0.82);
    border-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: none;
}

body[data-theme="glass-light"] .task-category-tab-shell {
    background: rgba(255,255,255,0.48);
    border-color: rgba(255,255,255,0.28);
}

body[data-theme^="glass"] .task-category-tab-shell .task-category-tab,
body[data-theme^="glass"] .task-category-menu-button {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body[data-theme^="glass"] .task-category-tab-shell.is-active {
    background: rgba(20, 20, 24, 0.94);
    border-color: var(--accent);
}

body[data-theme="glass-light"] .task-category-tab-shell.is-active {
    background: rgba(255,255,255,0.62);
}

body[data-theme^="glass"] .task-category-tab-shell .task-category-tab {
    color: rgba(255,255,255,0.72);
}

body[data-theme="glass-light"] .task-category-tab-shell .task-category-tab {
    color: rgba(16,18,24,0.72);
}

body[data-theme^="glass"] .task-category-tab-shell.is-active .task-category-tab,
body[data-theme^="glass"] .task-category-tab-shell.is-active .task-category-menu-button,
body[data-theme^="glass"] .task-category-tab-shell .task-category-tab:hover,
body[data-theme^="glass"] .task-category-menu-button:hover {
    color: var(--heading);
}

/* Round 24 Glassmorphism tab + task card refinement */
body[data-theme^="glass"] .modal-tasks-card-body {
    background: rgba(20, 20, 24, 0.78);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

body[data-theme="glass-light"] .modal-tasks-card-body {
    background: rgba(255,255,255,0.34);
    border-color: rgba(255,255,255,0.34);
}

body[data-theme^="glass"] .task-category-tab-shell,
body[data-theme^="glass"] .task-category-menu-popover,
body[data-theme^="glass"] .task-priority-button,
body[data-theme^="glass"] .task-priority-popover {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: none;
}

body[data-theme^="glass"] .task-category-tab-shell {
    --tab-bg: rgba(16, 18, 24, 0.82);
    color: rgba(255,255,255,0.76);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

body[data-theme="glass-light"] .task-category-tab-shell {
    --tab-bg: rgba(255,255,255,0.48);
    color: rgba(16,18,24,0.74);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

body[data-theme^="glass"] .task-category-tab-shell.is-active {
    --tab-bg: rgba(20, 20, 24, 0.94);
    color: var(--heading);
    box-shadow: inset 0 0 0 1px var(--accent), inset 0 2px 0 0 var(--accent);
}

body[data-theme="glass-light"] .task-category-tab-shell.is-active {
    --tab-bg: rgba(255,255,255,0.62);
}

body[data-theme^="glass"] .task-category-tab,
body[data-theme^="glass"] .task-category-menu-button {
    color: inherit;
}

body[data-theme^="glass"] .task-category-tab:hover,
body[data-theme^="glass"] .task-category-menu-button:hover {
    color: var(--heading);
    background: transparent;
}

/* Browser-style tabs + task sorting controls */
body[data-theme^="glass"] .modal-tabs,
body[data-theme^="glass"] .auth-tabs,
body[data-theme^="glass"] .task-category-tabs {
    --browser-tab-baseline: rgba(255, 255, 255, 0.12);
    --browser-tab-border: rgba(255, 255, 255, 0.12);
    --browser-tab-active-bg: rgba(20, 20, 24, 0.82);
    --browser-tab-inactive-bg: rgba(16, 18, 24, 0.42);
    --browser-tab-hover-bg: rgba(111, 170, 255, 0.16);
}

body[data-theme="glass-light"] .modal-tabs,
body[data-theme="glass-light"] .auth-tabs,
body[data-theme="glass-light"] .task-category-tabs {
    --browser-tab-baseline: rgba(7, 26, 50, 0.16);
    --browser-tab-border: rgba(255, 255, 255, 0.42);
    --browser-tab-active-bg: rgba(255, 255, 255, 0.62);
    --browser-tab-inactive-bg: rgba(255, 255, 255, 0.30);
    --browser-tab-hover-bg: rgba(255, 255, 255, 0.48);
}

body[data-theme^="glass"] .modal-tab,
body[data-theme^="glass"] .auth-tab,
body[data-theme^="glass"] .task-category-tab-shell,
body[data-theme^="glass"] .task-category-inline-input {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

body[data-theme^="glass"] .modal-tab.active,
body[data-theme^="glass"] .modal-tab[aria-selected="true"],
body[data-theme^="glass"] .auth-tab.auth-tab-active,
body[data-theme^="glass"] .task-category-tab-shell.is-active {
    border-color: var(--accent) !important;
    border-bottom-color: transparent !important;
}

body[data-theme^="glass"] .task-sort-control {
    padding: 10px 12px;
    border: 1px solid var(--glass-border-soft);
    background: var(--surface);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

body[data-theme^="glass"] .task-sort-select {
    background-color: rgba(16, 18, 24, 0.58);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--heading);
    box-shadow: none;
}

body[data-theme="glass-light"] .task-sort-select {
    background-color: rgba(255,255,255,0.52);
    border-color: rgba(255,255,255,0.38);
}

body[data-theme^="glass"] .modal-tab.active,
body[data-theme^="glass"] .modal-tab[aria-selected="true"],
body[data-theme^="glass"] .auth-tab.auth-tab-active,
body[data-theme^="glass"] .task-category-tab-shell.is-active {
    background: var(--browser-tab-active-bg) !important;
}

/* Round 25: keep project modal section buttons, category tab fixes, and no-card sort control. */
body[data-theme^="glass"] .modal-tabs {
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border-bottom: 2px solid var(--surface) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body[data-theme^="glass"] .modal-tab {
    position: relative !important;
    bottom: auto !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    margin: 0 0 -2px !important;
    padding: 12px !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

body[data-theme^="glass"] .modal-tab:hover {
    color: var(--heading) !important;
    background: transparent !important;
}

body[data-theme^="glass"] .modal-tab.active,
body[data-theme^="glass"] .modal-tab[aria-selected="true"] {
    color: var(--heading) !important;
    border-bottom-color: var(--accent) !important;
    background: transparent !important;
}

body[data-theme^="glass"] .modal-tab::after,
body[data-theme^="glass"] .modal-tab.active::after,
body[data-theme^="glass"] .modal-tab[aria-selected="true"]::after {
    display: none !important;
}

body[data-theme^="glass"] .task-category-tabs {
    padding: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    flex-wrap: wrap !important;
}

body[data-theme^="glass"] .task-category-tab-wrap--all {
    margin-left: 0 !important;
}

body[data-theme^="glass"] .task-category-tab-shell--create {
    padding: 0 !important;
}

body[data-theme^="glass"] .task-category-tab-shell--create .task-category-tab {
    width: 100% !important;
    min-width: 44px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
}

body[data-theme^="glass"] .task-category-tab-wrap.is-drop-target .task-category-tab-shell {
    border-color: var(--accent) !important;
    box-shadow: inset 0 2px 0 var(--accent), 0 0 0 3px rgba(110, 170, 255, 0.18) !important;
}

body[data-theme^="glass"] .task-sort-control {
    margin-left: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Round 26 task modal polish */
body[data-theme^="glass"] .modal-tasks-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body[data-theme^="glass"] .task-category-tabs {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
}

body[data-theme^="glass"] .task-category-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body[data-theme^="glass"] .task-category-tab-shell {
    padding: 0 !important;
    cursor: pointer;
}

body[data-theme^="glass"] .task-category-tab {
    align-self: stretch !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    cursor: pointer !important;
}

body[data-theme^="glass"] .task-category-menu-button {
    align-self: stretch !important;
    min-width: 34px !important;
    min-height: 38px !important;
    padding: 0 12px 0 4px !important;
    cursor: pointer !important;
}

body[data-theme^="glass"] .modal-task-controls-row {
    align-items: flex-start !important;
}

body[data-theme^="glass"] .task-sort-control {
    align-items: flex-end !important;
    justify-content: flex-start !important;
}

/* ============================================================================
   ROUND 36 — Nebula-only toggle, total completion, and task contrast fixes
   ============================================================================ */
body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    margin-left: auto !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle {
    position: relative !important;
    width: 56px !important;
    height: 28px !important;
    min-width: 56px !important;
    min-height: 28px !important;
    max-width: 56px !important;
    max-height: 28px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid var(--glass-border-soft) !important;
    background: var(--surface) !important;
    color: var(--heading) !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: hidden !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle-track {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: inherit !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle-option {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle-thumb {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: var(--accent) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transform: translateX(0) !important;
    transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out) !important;
    z-index: 2 !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle.is-dark .color-mode-toggle-thumb {
    transform: translateX(28px) !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle-icon {
    position: absolute !important;
    inset: auto !important;
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    color: currentColor !important;
    display: block !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle-icon--moon {
    display: none !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle-icon--sun {
    display: block !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle.is-dark .color-mode-toggle-icon--moon {
    display: block !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .color-mode-toggle.is-dark .color-mode-toggle-icon--sun {
    display: none !important;
}

body[data-theme^="glass"] .control-panel .sidebar-header-theme-toggle .sidebar-theme-toggle-label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    color: var(--heading) !important;
    white-space: nowrap !important;
}

body[data-theme^="glass"] .sidebar-total-completion-section .total-percentage,
body[data-theme^="glass"] .sidebar-total-completion-section .sidebar-completion-stat strong {
    color: var(--accent) !important;
}

body[data-theme="glass-light"] .sidebar-total-completion-section h3,
body[data-theme="glass-light"] .sidebar-total-completion-section .total-percentage-label,
body[data-theme="glass-light"] .sidebar-total-completion-section .sidebar-completion-stat span {
    color: #06131f !important;
}

body[data-theme="glass-dark"] .sidebar-total-completion-section h3,
body[data-theme="glass-dark"] .sidebar-total-completion-section .total-percentage-label {
    color: var(--heading) !important;
}

body[data-theme="glass-dark"] .sidebar-total-completion-section .sidebar-completion-stat span {
    color: var(--muted) !important;
}

body[data-theme^="glass"] .modal-tasks-card-body {
    background: rgba(14, 16, 22, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body[data-theme="glass-light"] .modal-tasks-card-body {
    background: rgba(255, 255, 255, 0.76) !important;
    border-color: rgba(7, 26, 50, 0.18) !important;
}

body[data-theme^="glass"] .modal-content .task-item,
body[data-theme^="glass"] .modal-content .task-input,
body[data-theme^="glass"] .modal-content .paste-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: var(--heading) !important;
}

body[data-theme="glass-light"] .modal-content .task-item,
body[data-theme="glass-light"] .modal-content .task-input,
body[data-theme="glass-light"] .modal-content .paste-box {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(7, 26, 50, 0.22) !important;
    color: #06131f !important;
}

body[data-theme^="glass"] .modal-content .task-checkbox {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 2px solid rgba(255, 255, 255, 0.68) !important;
    box-shadow: none !important;
}

body[data-theme="glass-light"] .modal-content .task-checkbox {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(7, 26, 50, 0.68) !important;
}

body[data-theme^="glass"] .modal-content .task-checkbox.checked {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}
