/**
 * CamoNotes - Theme Definitions
 * Each theme defines colors for background, text, accents, borders, and effects
 */

/* ==================== BASE THEME VARIABLES ==================== */
:root {
    /* Default: Greyscale */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #222222;
    --bg-active: #2a2a2a;
    
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-inverse: #0a0a0a;
    
    --accent-primary: #ffffff;
    --accent-secondary: #aaaaaa;
    --accent-glow: rgba(255, 255, 255, 0.3);
    
    --border-color: #333333;
    --border-active: #555555;
    
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #ef4444;
    --info: #60a5fa;
    
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(255, 255, 255, 0.1);
    
    /* Animation colors */
    --particle-color: #ffffff;
    --completion-glow: rgba(255, 255, 255, 0.5);
    
    /* Pulse colors for due dates */
    --pulse-critical: rgba(239, 68, 68, 0.6);
    --pulse-high: rgba(251, 191, 36, 0.5);
    --pulse-medium: rgba(251, 191, 36, 0.3);
    --pulse-low: rgba(96, 165, 250, 0.2);
}

/* ==================== GREYSCALE THEME (Default) ==================== */
[data-theme="greyscale"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #222222;
    --bg-active: #2a2a2a;
    
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-muted: #555555;
    
    --accent-primary: #ffffff;
    --accent-secondary: #aaaaaa;
    --accent-glow: rgba(255, 255, 255, 0.3);
    
    --border-color: #333333;
    --border-active: #555555;
    
    --particle-color: #ffffff;
    --completion-glow: rgba(255, 255, 255, 0.5);
}

/* ==================== ORIOLE THEME (Orange, Black, White) ==================== */
[data-theme="oriole"] {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1408;
    --bg-tertiary: #211a0a;
    --bg-hover: #2a200d;
    --bg-active: #332610;
    
    --text-primary: #fff5e6;
    --text-secondary: #cc8844;
    --text-muted: #805522;
    
    --accent-primary: #ff8c00;
    --accent-secondary: #ffa500;
    --accent-glow: rgba(255, 140, 0, 0.4);
    
    --border-color: #3d2a11;
    --border-active: #ff8c00;
    
    --particle-color: #ff8c00;
    --completion-glow: rgba(255, 140, 0, 0.6);
    
    --success: #7fff00;
    --info: #ffa500;
}

/* ==================== RAVEN THEME (Purple, Gold, Black, White) ==================== */
[data-theme="raven"] {
    --bg-primary: #0a0812;
    --bg-secondary: #12101c;
    --bg-tertiary: #1a1628;
    --bg-hover: #231e36;
    --bg-active: #2c2644;
    
    --text-primary: #f0e6ff;
    --text-secondary: #b39ddb;
    --text-muted: #6a5a8e;
    
    --accent-primary: #7c238c;
    --accent-secondary: #ffd700;
    --accent-glow: rgba(156, 39, 176, 0.4);
    
    --border-color: #3d2a5c;
    --border-active: #7c238c;
    
    --particle-color: #7c238c;
    --completion-glow: rgba(255, 215, 0, 0.6);
    
    --success: #66bb6a;
    --warning: #ffd700;
    --info: #ce93d8;
}

/* ==================== ELECTRIC THEME (Lime Green, Deep Purple, Black) ==================== */
[data-theme="electric"] {
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-tertiary: #0f0f1a;
    --bg-hover: #141422;
    --bg-active: #1a1a2e;
    
    --text-primary: #e0ffe0;
    --text-secondary: #7fff00;
    --text-muted: #4a7a00;
    
    --accent-primary: #7fff00;
    --accent-secondary: #6b21a8;
    --accent-glow: rgba(127, 255, 0, 0.5);
    
    --border-color: #1a3d1a;
    --border-active: #7fff00;
    
    --particle-color: #7fff00;
    --completion-glow: rgba(127, 255, 0, 0.7);
    
    --success: #7fff00;
    --warning: #ffff00;
    --info: #a855f7;
}

/* ==================== RETROFUTURIST THEME (70s Sunset Lounge) - LOCKED ==================== */
[data-theme="retrofuturist"] {
    --bg-primary: #1a1510;
    --bg-secondary: #262015;
    --bg-tertiary: #32291a;
    --bg-hover: #3d3220;
    --bg-active: #4a3d28;
    
    --text-primary: #f5ead6;
    --text-secondary: #c9a860;
    --text-muted: #8b7340;
    
    --accent-primary: #d4a020;
    --accent-secondary: #e05a1b;
    --accent-glow: rgba(212, 160, 32, 0.5);
    
    --border-color: #4a3d28;
    --border-active: #d4a020;
    
    --particle-color: #e05a1b;
    --completion-glow: rgba(224, 90, 27, 0.6);
    
    --success: #7a9a50;
    --warning: #d4a020;
    --danger: #c0392b;
    --info: #e05a1b;
}

/* ---- Retro: Warm film-grain scanlines ---- */
[data-theme="retrofuturist"] body::before {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(212, 160, 32, 0.025) 3px,
        rgba(212, 160, 32, 0.025) 6px
    );
    opacity: 0.8;
}

/* ---- Retro: Header with warm stripe accent ---- */
[data-theme="retrofuturist"] .header {
    background: #262015;
    border-bottom: 2px solid #d4a020;
    box-shadow: 0 2px 0 #e05a1b,
                0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ---- Retro: Logo — mustard with warm glow ---- */
[data-theme="retrofuturist"] .header-logo span:first-child {
    color: #d4a020;
    text-shadow: 0 0 8px rgba(212, 160, 32, 0.4);
}

[data-theme="retrofuturist"] .header-logo span:last-child {
    color: #e05a1b !important;
    text-shadow: 0 0 8px rgba(224, 90, 27, 0.3);
}

/* ---- Retro: Buttons — burnt orange gradient ---- */
[data-theme="retrofuturist"] .btn-primary {
    background: linear-gradient(135deg, #d4a020, #e05a1b);
    border: none;
    color: #1a1510;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(224, 90, 27, 0.3);
}

[data-theme="retrofuturist"] .btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 14px rgba(224, 90, 27, 0.4);
}

/* ---- Retro: FAB — sunset gradient ---- */
[data-theme="retrofuturist"] .fab {
    background: linear-gradient(135deg, #d4a020, #e05a1b);
    border: none;
    box-shadow: 0 0 10px rgba(224, 90, 27, 0.35),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="retrofuturist"] .fab:hover {
    box-shadow: 0 0 16px rgba(224, 90, 27, 0.5),
                0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Retro: Cards — warm border, double-line on hover ---- */
[data-theme="retrofuturist"] .item-card {
    border-color: #4a3d28;
    transition: all 0.2s ease;
}

[data-theme="retrofuturist"] .item-card:hover {
    border-color: #d4a020;
    box-shadow: 0 0 0 1px #e05a1b,
                0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="retrofuturist"] .note-card {
    border-color: #4a3d28;
    transition: all 0.2s ease;
}

[data-theme="retrofuturist"] .note-card:hover {
    border-color: #d4a020;
    box-shadow: 0 0 0 1px #e05a1b,
                0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ---- Retro: Note card accent — sunset gradient bar ---- */
[data-theme="retrofuturist"] .note-card::before {
    background: linear-gradient(180deg, #e05a1b, #d4a020, #8b6914);
}

/* ---- Retro: Checkboxes — mustard fill with orange glow ---- */
[data-theme="retrofuturist"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="retrofuturist"] .subtask-checkbox input:checked + .checkbox-visual {
    background: linear-gradient(135deg, #d4a020, #e05a1b);
    border-color: transparent;
    box-shadow: 0 0 6px rgba(224, 90, 27, 0.4);
}

[data-theme="retrofuturist"] .checkbox-visual {
    border-color: #8b6914;
}

/* ---- Retro: Links — burnt orange accent ---- */
[data-theme="retrofuturist"] .item-link {
    color: #e05a1b;
    border-bottom-color: #e05a1b;
}

[data-theme="retrofuturist"] .item-link:hover {
    color: #d4a020;
    border-bottom-color: #d4a020;
}

/* ---- Retro: Form focus — mustard ---- */
[data-theme="retrofuturist"] .form-input:focus,
[data-theme="retrofuturist"] .form-select:focus,
[data-theme="retrofuturist"] .form-textarea:focus,
[data-theme="retrofuturist"] .search-input:focus {
    border-color: #d4a020;
    box-shadow: 0 0 0 2px rgba(212, 160, 32, 0.25);
}

[data-theme="retrofuturist"] .add-item-form:focus-within {
    border-color: #d4a020;
}

/* ---- Retro: Streak values — sunset gradient ---- */
[data-theme="retrofuturist"] .streak-value {
    background: linear-gradient(90deg, #e05a1b, #d4a020, #e05a1b);
    background-size: 200% 100%;
    animation: retro-shimmer 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes retro-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Retro: Profile avatar ---- */
[data-theme="retrofuturist"] .profile-avatar {
    border-color: #d4a020;
    box-shadow: 0 0 0 2px #e05a1b,
                0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---- Retro: Badges with warm border ---- */
[data-theme="retrofuturist"] .badge-item.unlocked {
    border-color: #d4a020;
    box-shadow: 0 0 0 1px #e05a1b;
}

/* ---- Retro: Progress bar — sunset gradient ---- */
[data-theme="retrofuturist"] .multistep-progress-fill {
    background: linear-gradient(90deg, #8b6914, #d4a020, #e05a1b);
}

/* ---- Retro: Modal header with stripe ---- */
[data-theme="retrofuturist"] .modal-header {
    background: #262015;
    border-bottom: 2px solid #d4a020;
    box-shadow: 0 2px 0 #e05a1b;
}

/* ---- Retro: Toast borders ---- */
[data-theme="retrofuturist"] .toast {
    border-color: #4a3d28;
    background: #262015;
}

[data-theme="retrofuturist"] .toast.success {
    border-left: 3px solid #7a9a50;
}

[data-theme="retrofuturist"] .toast.error {
    border-left: 3px solid #c0392b;
}

[data-theme="retrofuturist"] .toast.info {
    border-left: 3px solid #e05a1b;
}

/* ---- Retro: Active option — double border ---- */
[data-theme="retrofuturist"] .theme-option.active,
[data-theme="retrofuturist"] .font-option.active,
[data-theme="retrofuturist"] .anim-option.active {
    border-color: #d4a020;
    box-shadow: 0 0 0 1px #e05a1b;
}

/* ---- Retro: Item tags — warm tones ---- */
[data-theme="retrofuturist"] .item-tag.type-habit {
    color: #e05a1b;
}

[data-theme="retrofuturist"] .item-tag.type-goal {
    color: #7a9a50;
}

[data-theme="retrofuturist"] .item-tag.recurring {
    color: #d4a020;
}

[data-theme="retrofuturist"] .item-tag.due-date {
    color: #d4a020;
}

[data-theme="retrofuturist"] .item-tag.due-date.overdue {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.15);
}

/* ---- Retro: Scrollbar — warm gradient ---- */
[data-theme="retrofuturist"] ::-webkit-scrollbar {
    width: 6px;
}

[data-theme="retrofuturist"] ::-webkit-scrollbar-track {
    background: #1a1510;
}

[data-theme="retrofuturist"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a020, #e05a1b);
    border-radius: 3px;
}

/* ---- Retro: Settings sections ---- */
[data-theme="retrofuturist"] .settings-section,
[data-theme="retrofuturist"] .badges-section {
    border: 1px solid #4a3d28;
}

/* ---- Retro: Profile header ---- */
[data-theme="retrofuturist"] .profile-header {
    border: 1px solid #4a3d28;
    background: #262015;
}

/* ---- Retro: Warm stripe on header bottom for visual pop ---- */
[data-theme="retrofuturist"] .notes-view-header,
[data-theme="retrofuturist"] .note-header {
    border-bottom: 2px solid #d4a020;
    box-shadow: 0 2px 0 rgba(224, 90, 27, 0.3);
}

/* ==================== VOID THEME (Deep Crimson, Black) - LOCKED ==================== */
[data-theme="void"] {
    --bg-primary: #000000;
    --bg-secondary: #060204;
    --bg-tertiary: #0c0406;
    --bg-hover: #140608;
    --bg-active: #1c080a;
    
    --text-primary: #e8e0e0;
    --text-secondary: #8a7070;
    --text-muted: #5a4040;
    --text-inverse: #000000;
    
    --accent-primary: #B11226;
    --accent-secondary: #7A0F1D;
    --accent-glow: rgba(177, 18, 38, 0.5);
    
    --border-color: #1a0a0c;
    --border-active: #B11226;
    
    --particle-color: #B11226;
    --completion-glow: rgba(177, 18, 38, 0.6);
    
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #ff1a1a;
    --info: #8a7070;
    
    --shadow-color: rgba(177, 18, 38, 0.15);
}

/* ---- Void: Crimson scanlines - visible on all devices ---- */
[data-theme="void"] body::before {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(177, 18, 38, 0.06) 2px,
        rgba(177, 18, 38, 0.06) 4px
    );
    opacity: 1;
}

/* ---- Void: Signature vignette — crimson edges closing in ---- */
[data-theme="void"] body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 45%,
        rgba(60, 0, 5, 0.35) 75%,
        rgba(30, 0, 3, 0.7) 100%
    );
    animation: void-vignette-breathe 6s ease-in-out infinite;
}

@keyframes void-vignette-breathe {
    0%, 100% {
        background: radial-gradient(ellipse at center, transparent 45%, rgba(60, 0, 5, 0.35) 75%, rgba(30, 0, 3, 0.7) 100%);
    }
    50% {
        background: radial-gradient(ellipse at center, transparent 40%, rgba(80, 5, 10, 0.4) 72%, rgba(40, 0, 5, 0.75) 100%);
    }
}

/* ---- Void: Header ---- */
[data-theme="void"] .header {
    background: #060204;
    border-bottom: 1px solid rgba(177, 18, 38, 0.15);
    box-shadow: 0 2px 25px rgba(177, 18, 38, 0.12),
                0 1px 0 rgba(177, 18, 38, 0.15);
}

/* ---- Void: Logo with smoldering ember glow ---- */
[data-theme="void"] .header-logo {
    color: #B11226;
}

[data-theme="void"] .header-logo span:first-child {
    color: #B11226;
    text-shadow: 
        0 0 7px rgba(177, 18, 38, 0.9),
        0 0 14px rgba(177, 18, 38, 0.5),
        0 0 28px rgba(177, 18, 38, 0.25);
    animation: void-ember-pulse 4s ease-in-out infinite;
}

[data-theme="void"] .header-logo span:last-child {
    color: #5a4040 !important;
    text-shadow: 0 0 8px rgba(90, 64, 64, 0.4);
}

@keyframes void-ember-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 7px rgba(177, 18, 38, 0.9),
            0 0 14px rgba(177, 18, 38, 0.5),
            0 0 28px rgba(177, 18, 38, 0.25);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 
            0 0 10px rgba(255, 30, 50, 0.95),
            0 0 22px rgba(177, 18, 38, 0.7),
            0 0 40px rgba(177, 18, 38, 0.3);
        filter: brightness(1.15);
    }
    /* Ember flicker */
    70% {
        text-shadow: 
            0 0 5px rgba(177, 18, 38, 0.6),
            0 0 10px rgba(177, 18, 38, 0.3);
        filter: brightness(0.9);
    }
    72% {
        text-shadow: 
            0 0 9px rgba(255, 40, 40, 0.9),
            0 0 18px rgba(177, 18, 38, 0.6),
            0 0 35px rgba(177, 18, 38, 0.3);
        filter: brightness(1.2);
    }
}

/* ---- Void: Buttons ---- */
[data-theme="void"] .btn-primary {
    background: linear-gradient(135deg, #B11226, #7A0F1D);
    border: 1px solid rgba(177, 18, 38, 0.4);
    color: #e8e0e0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(177, 18, 38, 0.3),
                0 0 20px rgba(177, 18, 38, 0.12);
}

[data-theme="void"] .btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 14px rgba(177, 18, 38, 0.5),
                0 0 30px rgba(177, 18, 38, 0.2);
}

/* ---- Void: FAB with crimson breathing glow ---- */
[data-theme="void"] .fab {
    background: linear-gradient(135deg, #B11226, #7A0F1D);
    border: 1px solid rgba(177, 18, 38, 0.4);
    box-shadow: 0 0 14px rgba(177, 18, 38, 0.45),
                0 0 30px rgba(177, 18, 38, 0.15);
    animation: void-fab-glow 4s ease-in-out infinite;
}

[data-theme="void"] .fab:hover {
    box-shadow: 0 0 20px rgba(177, 18, 38, 0.6),
                0 0 40px rgba(177, 18, 38, 0.25),
                0 0 70px rgba(177, 18, 38, 0.12);
}

@keyframes void-fab-glow {
    0%, 100% {
        box-shadow: 0 0 14px rgba(177, 18, 38, 0.45),
                    0 0 30px rgba(177, 18, 38, 0.15);
    }
    50% {
        box-shadow: 0 0 22px rgba(177, 18, 38, 0.6),
                    0 0 45px rgba(177, 18, 38, 0.2),
                    0 0 70px rgba(177, 18, 38, 0.08);
    }
}

/* ---- Void: Cards — always-visible subtle crimson glow (works on mobile) ---- */
[data-theme="void"] .item-card {
    border-color: rgba(177, 18, 38, 0.12);
    background: #060204;
    box-shadow: 0 0 6px rgba(177, 18, 38, 0.06),
                inset 0 0 12px rgba(177, 18, 38, 0.015);
    transition: all 0.3s ease;
}

[data-theme="void"] .item-card:hover {
    border-color: rgba(177, 18, 38, 0.35);
    box-shadow: 0 0 14px rgba(177, 18, 38, 0.15),
                0 0 30px rgba(177, 18, 38, 0.06),
                inset 0 0 20px rgba(177, 18, 38, 0.03);
}

[data-theme="void"] .note-card {
    border-color: rgba(177, 18, 38, 0.12);
    background: #060204;
    box-shadow: 0 0 6px rgba(177, 18, 38, 0.06);
    transition: all 0.3s ease;
}

[data-theme="void"] .note-card:hover {
    border-color: rgba(177, 18, 38, 0.35);
    box-shadow: 0 0 14px rgba(177, 18, 38, 0.12),
                0 0 30px rgba(177, 18, 38, 0.04);
}

/* ---- Void: Note card accent — crimson blood bar ---- */
[data-theme="void"] .note-card::before {
    background: linear-gradient(180deg, #B11226, #7A0F1D, #3d0710);
}

/* ---- Void: Checkboxes with ember glow ---- */
[data-theme="void"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="void"] .subtask-checkbox input:checked + .checkbox-visual {
    background: linear-gradient(135deg, #B11226, #7A0F1D);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(177, 18, 38, 0.6),
                0 0 16px rgba(177, 18, 38, 0.25);
}

[data-theme="void"] .checkbox-visual {
    border-color: rgba(177, 18, 38, 0.45);
}

/* ---- Void: Links ---- */
[data-theme="void"] .item-link {
    color: #ff4444;
    border-bottom-color: rgba(177, 18, 38, 0.5);
    text-shadow: 0 0 6px rgba(255, 68, 68, 0.35);
}

[data-theme="void"] .item-link:hover {
    color: #ff6666;
    border-bottom-color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 102, 102, 0.5);
}

/* ---- Void: Search input ---- */
[data-theme="void"] .search-input:focus {
    border-color: rgba(177, 18, 38, 0.5);
    box-shadow: 0 0 0 2px rgba(177, 18, 38, 0.18),
                0 0 12px rgba(177, 18, 38, 0.1);
}

/* ---- Void: Form inputs ---- */
[data-theme="void"] .form-input:focus,
[data-theme="void"] .form-select:focus,
[data-theme="void"] .form-textarea:focus {
    border-color: rgba(177, 18, 38, 0.5);
    box-shadow: 0 0 0 2px rgba(177, 18, 38, 0.18),
                0 0 12px rgba(177, 18, 38, 0.1);
}

/* ---- Void: Add item form ---- */
[data-theme="void"] .add-item-form:focus-within {
    border-color: rgba(177, 18, 38, 0.45);
    box-shadow: 0 0 10px rgba(177, 18, 38, 0.08);
}

/* ---- Void: Streak values with ember glow ---- */
[data-theme="void"] .streak-value {
    color: #B11226;
    text-shadow: 
        0 0 10px rgba(177, 18, 38, 0.7),
        0 0 20px rgba(177, 18, 38, 0.3);
    animation: void-ember-pulse 4s ease-in-out infinite;
}

/* ---- Void: Profile avatar ---- */
[data-theme="void"] .profile-avatar {
    border-color: #7A0F1D;
    box-shadow: 0 0 14px rgba(177, 18, 38, 0.4),
                0 0 30px rgba(177, 18, 38, 0.15);
}

/* ---- Void: Badges ---- */
[data-theme="void"] .badge-item.unlocked {
    border-color: rgba(177, 18, 38, 0.45);
    box-shadow: 0 0 10px rgba(177, 18, 38, 0.2),
                0 0 20px rgba(177, 18, 38, 0.06);
}

/* ---- Void: Progress bar ---- */
[data-theme="void"] .multistep-progress-fill {
    background: linear-gradient(90deg, #7A0F1D, #B11226, #ff2020);
    background-size: 200% 100%;
    animation: void-progress-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(177, 18, 38, 0.6);
}

@keyframes void-progress-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Void: Modal header ---- */
[data-theme="void"] .modal-header {
    background: #060204;
    border-bottom-color: rgba(177, 18, 38, 0.2);
}

/* ---- Void: Toast borders ---- */
[data-theme="void"] .toast {
    border-color: rgba(177, 18, 38, 0.2);
    background: #060204;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6),
                0 0 12px rgba(177, 18, 38, 0.08);
}

[data-theme="void"] .toast.success {
    border-left-color: #4ade80;
}

[data-theme="void"] .toast.error {
    border-left-color: #ff1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6),
                0 0 12px rgba(255, 26, 26, 0.12);
}

[data-theme="void"] .toast.info {
    border-left-color: #8a7070;
}

/* ---- Void: Active option borders ---- */
[data-theme="void"] .theme-option.active,
[data-theme="void"] .font-option.active,
[data-theme="void"] .anim-option.active {
    border-color: #B11226;
    box-shadow: 0 0 10px rgba(177, 18, 38, 0.25),
                0 0 20px rgba(177, 18, 38, 0.1);
}

/* ---- Void: Item tags ---- */
[data-theme="void"] .item-tag.type-habit {
    color: #B11226;
    text-shadow: 0 0 5px rgba(177, 18, 38, 0.25);
}

[data-theme="void"] .item-tag.type-goal {
    color: #4ade80;
}

[data-theme="void"] .item-tag.recurring {
    color: #8a7070;
}

[data-theme="void"] .item-tag.due-date {
    color: #fbbf24;
}

[data-theme="void"] .item-tag.due-date.overdue {
    color: #ff1a1a;
    background: rgba(255, 26, 26, 0.12);
    text-shadow: 0 0 5px rgba(255, 26, 26, 0.35);
}

/* ---- Void: Scrollbar ---- */
[data-theme="void"] ::-webkit-scrollbar {
    width: 6px;
}

[data-theme="void"] ::-webkit-scrollbar-track {
    background: #000000;
}

[data-theme="void"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7A0F1D, #B11226);
    border-radius: 3px;
}

/* ---- Void: Settings sections ---- */
[data-theme="void"] .settings-section,
[data-theme="void"] .badges-section {
    border: 1px solid rgba(177, 18, 38, 0.1);
}

/* ---- Void: Profile header ---- */
[data-theme="void"] .profile-header {
    border: 1px solid rgba(177, 18, 38, 0.12);
    background: #060204;
    box-shadow: inset 0 0 35px rgba(177, 18, 38, 0.03);
}

/* ---- Void: Notes view title ---- */
[data-theme="void"] .notes-view-title {
    text-shadow: 0 0 10px rgba(177, 18, 38, 0.3);
}

/* ---- Void: Permanent crimson left accent on item cards ---- */
[data-theme="void"] .item-card {
    border-left: 2px solid rgba(177, 18, 38, 0.2);
}

[data-theme="void"] .item-card:hover {
    border-left: 3px solid rgba(177, 18, 38, 0.6);
}

/* ==================== ICE THEME (Grey, Light Blue, White) - LOCKED ==================== */
[data-theme="ice"] {
    --bg-primary: #0a1015;
    --bg-secondary: #101820;
    --bg-tertiary: #152028;
    --bg-hover: #1a2830;
    --bg-active: #203038;
    
    --text-primary: #e6f4ff;
    --text-secondary: #7dd3fc;
    --text-muted: #4a90a4;
    
    --accent-primary: #38bdf8;
    --accent-secondary: #e0f2fe;
    --accent-glow: rgba(56, 189, 248, 0.4);
    
    --border-color: #1e3a4d;
    --border-active: #38bdf8;
    
    --particle-color: #e0f2fe;
    --completion-glow: rgba(56, 189, 248, 0.6);

    --success: #4ade80;
    --warning: #fbbf24;
    --info: #38bdf8;
}

/* Ice theme links - pale ice blue */
[data-theme="ice"] .item-link {
    color: #e0f2fe;
    border-bottom-color: #7dd3fc;
}

[data-theme="ice"] .item-link:hover {
    color: #ffffff;
    border-bottom-color: #38bdf8;
}

/* ==================== RAINBOW THEME (Black, White, Gradient Rainbow) - LOCKED ==================== */
[data-theme="rainbow"] {
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #151515;
    --bg-hover: #1f1f1f;
    --bg-active: #292929;
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #666666;
    
    /* Rainbow colors cycle - using CSS animation */
    --accent-primary: #ff6b6b;
    --accent-secondary: #4ecdc4;
    --accent-glow: rgba(255, 107, 107, 0.4);
    
    --border-color: #333333;
    --border-active: #ff6b6b;
    
    --particle-color: #ffffff;
    --completion-glow: rgba(255, 255, 255, 0.5);
    
    /* Rainbow gradient definition */
    --rainbow-gradient: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);
}

/* Rainbow gradient for special elements */
[data-theme="rainbow"] .rainbow-accent {
    background: linear-gradient(90deg, 
        #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 200% 200%;
    animation: rainbow-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="rainbow"] .tab-bar,
[data-theme="rainbow"] .header {
    border-image: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff) 1;
}

/* Rainbow accent for buttons */
[data-theme="rainbow"] .btn-primary {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 300% 100%;
    animation: rainbow-btn 4s ease infinite;
    border: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

[data-theme="rainbow"] .btn-primary:hover {
    filter: brightness(1.1);
}

/* Rainbow FAB button */
[data-theme="rainbow"] .fab {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 400% 400%;
    animation: rainbow-fab 6s ease infinite;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

[data-theme="rainbow"] .fab:hover {
    box-shadow: 0 6px 30px rgba(78, 205, 196, 0.5);
}

/* Rainbow checkboxes - checked state */
[data-theme="rainbow"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="rainbow"] .subtask-checkbox input:checked + .checkbox-visual {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 200% 200%;
    animation: rainbow-check 3s ease infinite;
    border-color: transparent;
}

/* Rainbow checkbox borders - unchecked state cycles through colors */
[data-theme="rainbow"] .item-card:nth-child(6n+1) .checkbox-visual {
    border-color: #ff6b6b;
}
[data-theme="rainbow"] .item-card:nth-child(6n+2) .checkbox-visual {
    border-color: #feca57;
}
[data-theme="rainbow"] .item-card:nth-child(6n+3) .checkbox-visual {
    border-color: #48dbfb;
}
[data-theme="rainbow"] .item-card:nth-child(6n+4) .checkbox-visual {
    border-color: #ff9ff3;
}
[data-theme="rainbow"] .item-card:nth-child(6n+5) .checkbox-visual {
    border-color: #54a0ff;
}
[data-theme="rainbow"] .item-card:nth-child(6n+6) .checkbox-visual {
    border-color: #5f27cd;
}

/* Rainbow subtask checkboxes cycle colors */
[data-theme="rainbow"] .subtask-item:nth-child(6n+1) .checkbox-visual {
    border-color: #ff6b6b;
}
[data-theme="rainbow"] .subtask-item:nth-child(6n+2) .checkbox-visual {
    border-color: #feca57;
}
[data-theme="rainbow"] .subtask-item:nth-child(6n+3) .checkbox-visual {
    border-color: #48dbfb;
}
[data-theme="rainbow"] .subtask-item:nth-child(6n+4) .checkbox-visual {
    border-color: #ff9ff3;
}
[data-theme="rainbow"] .subtask-item:nth-child(6n+5) .checkbox-visual {
    border-color: #54a0ff;
}
[data-theme="rainbow"] .subtask-item:nth-child(6n+6) .checkbox-visual {
    border-color: #5f27cd;
}

/* Rainbow links */
[data-theme="rainbow"] .item-link {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    background-size: 200% 100%;
    animation: rainbow-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom-color: #feca57 !important;
}

/* Rainbow item card left accent on hover - cycles colors */
[data-theme="rainbow"] .item-card:nth-child(6n+1):hover {
    border-left: 3px solid #ff6b6b;
}
[data-theme="rainbow"] .item-card:nth-child(6n+2):hover {
    border-left: 3px solid #feca57;
}
[data-theme="rainbow"] .item-card:nth-child(6n+3):hover {
    border-left: 3px solid #48dbfb;
}
[data-theme="rainbow"] .item-card:nth-child(6n+4):hover {
    border-left: 3px solid #ff9ff3;
}
[data-theme="rainbow"] .item-card:nth-child(6n+5):hover {
    border-left: 3px solid #54a0ff;
}
[data-theme="rainbow"] .item-card:nth-child(6n+6):hover {
    border-left: 3px solid #5f27cd;
}

/* Rainbow note card left accent - cycles colors */
[data-theme="rainbow"] .note-card:nth-child(6n+1)::before {
    background: #ff6b6b;
}
[data-theme="rainbow"] .note-card:nth-child(6n+2)::before {
    background: #feca57;
}
[data-theme="rainbow"] .note-card:nth-child(6n+3)::before {
    background: #48dbfb;
}
[data-theme="rainbow"] .note-card:nth-child(6n+4)::before {
    background: #ff9ff3;
}
[data-theme="rainbow"] .note-card:nth-child(6n+5)::before {
    background: #54a0ff;
}
[data-theme="rainbow"] .note-card:nth-child(6n+6)::before {
    background: #5f27cd;
}

/* Rainbow due date and recurring tags */
[data-theme="rainbow"] .item-tag.due-date {
    color: #feca57;
}
[data-theme="rainbow"] .item-tag.due-date.overdue {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}
[data-theme="rainbow"] .item-tag.recurring {
    color: #48dbfb;
}

/* Rainbow badge unlocked borders cycle */
[data-theme="rainbow"] .badge-item.unlocked:nth-child(6n+1) {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}
[data-theme="rainbow"] .badge-item.unlocked:nth-child(6n+2) {
    border-color: #feca57;
    box-shadow: 0 0 10px rgba(254, 202, 87, 0.3);
}
[data-theme="rainbow"] .badge-item.unlocked:nth-child(6n+3) {
    border-color: #48dbfb;
    box-shadow: 0 0 10px rgba(72, 219, 251, 0.3);
}
[data-theme="rainbow"] .badge-item.unlocked:nth-child(6n+4) {
    border-color: #ff9ff3;
    box-shadow: 0 0 10px rgba(255, 159, 243, 0.3);
}
[data-theme="rainbow"] .badge-item.unlocked:nth-child(6n+5) {
    border-color: #54a0ff;
    box-shadow: 0 0 10px rgba(84, 160, 255, 0.3);
}
[data-theme="rainbow"] .badge-item.unlocked:nth-child(6n+6) {
    border-color: #5f27cd;
    box-shadow: 0 0 10px rgba(95, 39, 205, 0.3);
}

/* Rainbow search focus */
[data-theme="rainbow"] .search-input:focus {
    border-color: #48dbfb;
    box-shadow: 0 0 0 2px rgba(72, 219, 251, 0.3);
}

/* Rainbow form input focus */
[data-theme="rainbow"] .form-input:focus,
[data-theme="rainbow"] .form-select:focus {
    border-color: #54a0ff;
    box-shadow: 0 0 0 2px rgba(84, 160, 255, 0.3);
}

/* Rainbow add-item-form focus */
[data-theme="rainbow"] .add-item-form:focus-within {
    border-color: #feca57;
}

/* Rainbow toast borders */
[data-theme="rainbow"] .toast.success {
    border-left-color: #48dbfb;
}
[data-theme="rainbow"] .toast.error {
    border-left-color: #ff6b6b;
}
[data-theme="rainbow"] .toast.info {
    border-left-color: #54a0ff;
}

/* Rainbow active theme/font/anim option borders */
[data-theme="rainbow"] .theme-option.active,
[data-theme="rainbow"] .font-option.active,
[data-theme="rainbow"] .anim-option.active {
    border-image: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff) 1;
}

/* Rainbow streak values */
[data-theme="rainbow"] .streak-value {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    background-size: 200% 100%;
    animation: rainbow-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rainbow profile avatar border */
[data-theme="rainbow"] .profile-avatar {
    border-color: transparent;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd) padding-box,
                linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd) border-box;
}

/* Rainbow active tab indicator */
[data-theme="rainbow"] .tab-btn.active {
    color: #fff;
}

[data-theme="rainbow"] .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    border-radius: 3px 3px 0 0;
}

/* Rainbow text for logo */
[data-theme="rainbow"] .header-logo span:first-child {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    background-size: 200% 100%;
    animation: rainbow-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rainbow progress bar for multi-step tasks */
[data-theme="rainbow"] .multistep-progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 200% 100%;
    animation: rainbow-shift 3s ease infinite;
}

/* Rainbow item tags */
[data-theme="rainbow"] .item-tag.type-habit,
[data-theme="rainbow"] .item-tag.type-goal {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
    background-size: 200% 100%;
    animation: rainbow-shift 4s ease infinite;
    color: #fff;
    border: none;
}

/* Rainbow glow on hover for cards */
[data-theme="rainbow"] .item-card:hover,
[data-theme="rainbow"] .note-card:hover {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2),
                0 0 30px rgba(78, 205, 196, 0.1);
}

/* Rainbow scrollbar */
[data-theme="rainbow"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
}

/* Rainbow theme preview in settings */
[data-theme="rainbow"] .theme-preview.rainbow,
.theme-preview.rainbow {
    background: linear-gradient(135deg, #050505 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.theme-preview.rainbow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow-btn {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow-fab {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes rainbow-check {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* ==================== NEON THEME (Urban Neon Signs) - LOCKED ==================== */
/* Identity: hot pink + electric green + white-hot glow on neutral dark grays */
/* Distinct from Vaporwave (pastel pink + cyan + purple on deep purple) */
[data-theme="neon"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121214;
    --bg-tertiary: #1a1a1e;
    --bg-hover: #222228;
    --bg-active: #2a2a30;
    
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b8;
    --text-muted: #686870;
    --text-inverse: #0a0a0a;
    
    --accent-primary: #ff1493;
    --accent-secondary: #39ff14;
    --accent-glow: rgba(255, 20, 147, 0.5);
    
    --border-color: #222228;
    --border-active: #ff1493;
    
    --particle-color: #ff1493;
    --completion-glow: rgba(255, 20, 147, 0.6);
    
    --success: #39ff14;
    --warning: #ffe100;
    --danger: #ff0055;
    --info: #39ff14;
    
    --shadow-color: rgba(0, 0, 0, 0.6);
}

/* ---- Neon: No scanlines — clean dark street vibe ---- */
[data-theme="neon"] body::before {
    opacity: 0;
}

/* ---- Neon: Header with hot-pink underglow ---- */
[data-theme="neon"] .header {
    background: #121214;
    border-bottom: 1px solid #222228;
    box-shadow: 0 2px 20px rgba(255, 20, 147, 0.12),
                0 1px 0 rgba(57, 255, 20, 0.06);
}

/* ---- Neon: Logo — pink CAMO, green NOTES, white-hot cores ---- */
[data-theme="neon"] .header-logo {
    color: #ff1493;
    animation: neon-logo-pulse 3s ease-in-out infinite;
}

[data-theme="neon"] .header-logo span:first-child {
    color: #ff1493;
    text-shadow: 
        0 0 4px rgba(255, 255, 255, 0.6),
        0 0 10px rgba(255, 20, 147, 0.9),
        0 0 20px rgba(255, 20, 147, 0.5),
        0 0 40px rgba(255, 20, 147, 0.25);
}

[data-theme="neon"] .header-logo span:last-child {
    color: #39ff14 !important;
    text-shadow: 
        0 0 4px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(57, 255, 20, 0.9),
        0 0 20px rgba(57, 255, 20, 0.5),
        0 0 40px rgba(57, 255, 20, 0.2);
}

@keyframes neon-logo-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
    /* Neon flicker */
    88% { filter: brightness(0.8); }
    89% { filter: brightness(1.1); }
    91% { filter: brightness(0.85); }
    92% { filter: brightness(1.2); }
}

/* ---- Neon: Hot-pink gradient buttons with white core ---- */
[data-theme="neon"] .btn-primary {
    background: linear-gradient(135deg, #ff1493, #ff2aaa);
    border: none;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3),
                0 0 12px rgba(255, 20, 147, 0.4),
                0 0 24px rgba(255, 20, 147, 0.15);
}

[data-theme="neon"] .btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4),
                0 0 18px rgba(255, 20, 147, 0.6),
                0 0 35px rgba(255, 20, 147, 0.2);
}

/* ---- Neon: FAB with layered neon glow ---- */
[data-theme="neon"] .fab {
    background: linear-gradient(135deg, #ff1493, #ff2aaa);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3),
                0 0 15px rgba(255, 20, 147, 0.5),
                0 0 35px rgba(255, 20, 147, 0.2);
    border: 1px solid rgba(255, 100, 180, 0.3);
}

[data-theme="neon"] .fab:hover {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5),
                0 0 22px rgba(255, 20, 147, 0.7),
                0 0 50px rgba(255, 20, 147, 0.25);
    transform: scale(1.1);
}

/* ---- Neon: Card hover — green glow on note cards, pink on items ---- */
[data-theme="neon"] .item-card {
    border-color: #222228;
    transition: all 0.3s ease;
}

[data-theme="neon"] .item-card:hover {
    border-color: rgba(255, 20, 147, 0.35);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.1),
                0 0 12px rgba(255, 20, 147, 0.12);
}

[data-theme="neon"] .note-card {
    border-color: #222228;
    transition: all 0.3s ease;
}

[data-theme="neon"] .note-card:hover {
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.08),
                0 0 12px rgba(57, 255, 20, 0.1);
}

/* ---- Neon: Note card accent bars — pink/green alternate ---- */
[data-theme="neon"] .note-card::before {
    background: linear-gradient(180deg, #ff1493, #39ff14);
}

[data-theme="neon"] .note-card:nth-child(even)::before {
    background: linear-gradient(180deg, #39ff14, #ff1493);
}

/* ---- Neon: Checkboxes — pink glow with white-hot center ---- */
[data-theme="neon"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="neon"] .subtask-checkbox input:checked + .checkbox-visual {
    background: #ff1493;
    border-color: transparent;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4),
                0 0 10px rgba(255, 20, 147, 0.6),
                0 0 18px rgba(255, 20, 147, 0.25);
}

[data-theme="neon"] .checkbox-visual {
    border-color: rgba(255, 20, 147, 0.45);
}

/* Alternate green checkbox borders */
[data-theme="neon"] .item-card:nth-child(even) .checkbox-visual {
    border-color: rgba(57, 255, 20, 0.4);
}

/* ---- Neon: Links — electric green with glow ---- */
[data-theme="neon"] .item-link {
    color: #39ff14;
    border-bottom-color: rgba(57, 255, 20, 0.5);
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.5),
                 0 0 12px rgba(57, 255, 20, 0.2);
}

[data-theme="neon"] .item-link:hover {
    color: #ff1493;
    border-bottom-color: #ff1493;
    text-shadow: 0 0 6px rgba(255, 20, 147, 0.6),
                 0 0 12px rgba(255, 20, 147, 0.3);
}

/* ---- Neon: Search input — green focus glow ---- */
[data-theme="neon"] .search-input:focus {
    border-color: #39ff14;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.15),
                0 0 10px rgba(57, 255, 20, 0.08);
}

/* ---- Neon: Form inputs — pink focus ---- */
[data-theme="neon"] .form-input:focus,
[data-theme="neon"] .form-select:focus,
[data-theme="neon"] .form-textarea:focus {
    border-color: #ff1493;
    box-shadow: 0 0 0 2px rgba(255, 20, 147, 0.15),
                0 0 10px rgba(255, 20, 147, 0.08);
}

/* ---- Neon: Add item form ---- */
[data-theme="neon"] .add-item-form:focus-within {
    border-color: #ff1493;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.08);
}

/* ---- Neon: Streak values — pink/green gradient ---- */
[data-theme="neon"] .streak-value {
    background: linear-gradient(90deg, #ff1493, #ffffff, #39ff14);
    background-size: 200% 100%;
    animation: neon-text-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(255, 20, 147, 0.35));
}

@keyframes neon-text-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Neon: Profile avatar ---- */
[data-theme="neon"] .profile-avatar {
    border-color: transparent;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3),
                0 0 12px rgba(255, 20, 147, 0.4),
                0 0 25px rgba(57, 255, 20, 0.15);
}

/* ---- Neon: Badge glow — alternating pink/green ---- */
[data-theme="neon"] .badge-item.unlocked {
    border-color: rgba(255, 20, 147, 0.4);
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.18);
}

[data-theme="neon"] .badge-item.unlocked:nth-child(even) {
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.18);
}

/* ---- Neon: Progress bar — pink-white-green ---- */
[data-theme="neon"] .multistep-progress-fill {
    background: linear-gradient(90deg, #ff1493, #ffffff, #39ff14);
    background-size: 200% 100%;
    animation: neon-text-shift 3s ease infinite;
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.4);
}

/* ---- Neon: Modal header ---- */
[data-theme="neon"] .modal-header {
    background: #121214;
    border-bottom-color: rgba(255, 20, 147, 0.15);
}

/* ---- Neon: Toast borders ---- */
[data-theme="neon"] .toast {
    border-color: #222228;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="neon"] .toast.success {
    border-left-color: #39ff14;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 8px rgba(57, 255, 20, 0.12);
}

[data-theme="neon"] .toast.error {
    border-left-color: #ff0055;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 8px rgba(255, 0, 85, 0.12);
}

[data-theme="neon"] .toast.info {
    border-left-color: #39ff14;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 8px rgba(57, 255, 20, 0.12);
}

/* ---- Neon: Active option borders ---- */
[data-theme="neon"] .theme-option.active,
[data-theme="neon"] .font-option.active,
[data-theme="neon"] .anim-option.active {
    border-color: #ff1493;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15),
                0 0 10px rgba(255, 20, 147, 0.2);
}

/* ---- Neon: Item tags ---- */
[data-theme="neon"] .item-tag.type-habit {
    color: #39ff14;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

[data-theme="neon"] .item-tag.type-goal {
    color: #ffe100;
    text-shadow: 0 0 5px rgba(255, 225, 0, 0.3);
}

[data-theme="neon"] .item-tag.recurring {
    color: #ff1493;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.3);
}

[data-theme="neon"] .item-tag.due-date {
    color: #ffe100;
    text-shadow: 0 0 5px rgba(255, 225, 0, 0.3);
}

[data-theme="neon"] .item-tag.due-date.overdue {
    color: #ff0055;
    background: rgba(255, 0, 85, 0.12);
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.4);
}

/* ---- Neon: Scrollbar — pink/green ---- */
[data-theme="neon"] ::-webkit-scrollbar {
    width: 6px;
}

[data-theme="neon"] ::-webkit-scrollbar-track {
    background: #0a0a0a;
}

[data-theme="neon"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff1493, #39ff14);
    border-radius: 3px;
}

/* ---- Neon: Notes view title ---- */
[data-theme="neon"] .notes-view-title {
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2),
                 0 0 10px rgba(255, 20, 147, 0.3);
}

/* ---- Neon: Settings sections ---- */
[data-theme="neon"] .settings-section,
[data-theme="neon"] .badges-section {
    border: 1px solid rgba(255, 20, 147, 0.08);
}

/* ---- Neon: Profile header ---- */
[data-theme="neon"] .profile-header {
    border: 1px solid rgba(255, 20, 147, 0.1);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.04);
}

/* ---- Neon: Item card left accents — pink/green alternate ---- */
[data-theme="neon"] .item-card:nth-child(odd):hover {
    border-left: 3px solid #ff1493;
}

[data-theme="neon"] .item-card:nth-child(even):hover {
    border-left: 3px solid #39ff14;
}

/* ==================== TERMINAL THEME (VT220 Amber Phosphor) - LOCKED ==================== */
[data-theme="terminal"] {
    --bg-primary: #0d0a07;
    --bg-secondary: #151008;
    --bg-tertiary: #1a140a;
    --bg-hover: #221a0d;
    --bg-active: #2a2010;
    
    --text-primary: #ffb000;
    --text-secondary: #cc8800;
    --text-muted: #805500;
    --text-inverse: #0d0a07;
    
    --accent-primary: #ffb000;
    --accent-secondary: #ffd966;
    --accent-glow: rgba(255, 176, 0, 0.4);
    
    --border-color: #3d2a0f;
    --border-active: #ffb000;
    
    --particle-color: #ffb000;
    --completion-glow: rgba(255, 176, 0, 0.5);
    
    --success: #7fff00;
    --warning: #ffd966;
    --danger: #ff6600;
    --info: #ffb000;
    
    /* Highlight colors - pale parchment/off-white */
    --highlight-color: #f5e6c8;
}

/* Terminal theme specific styling - amber phosphor CRT effect */
[data-theme="terminal"] body::before {
    /* Enhanced scanline for CRT effect */
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    opacity: 0.7;
}

[data-theme="terminal"] .header {
    background: #151008;
    border-bottom: 1px solid #3d2a0f;
}

[data-theme="terminal"] .header-logo {
    color: #ffb000;
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.5), 0 0 20px rgba(255, 176, 0, 0.3);
}

[data-theme="terminal"] .header-logo span {
    color: #ffb000 !important;
}

/* Amber glow on interactive elements */
[data-theme="terminal"] .item-card:hover {
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.2);
}

[data-theme="terminal"] .item-card {
    border-color: #3d2a0f;
}

[data-theme="terminal"] .note-card:hover {
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.2);
}

/* Terminal checkbox styling */
[data-theme="terminal"] .checkbox-visual {
    border-color: #ffb000;
}

[data-theme="terminal"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="terminal"] .subtask-checkbox input:checked + .checkbox-visual {
    background: #ffb000;
    border-color: #ffb000;
}

/* Terminal button styling */
[data-theme="terminal"] .btn-primary {
    background: #ffb000;
    border-color: #ffb000;
    color: #0d0a07;
}

[data-theme="terminal"] .btn-primary:hover {
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.4);
}

/* Terminal FAB button */
[data-theme="terminal"] .fab {
    background: #ffb000;
    box-shadow: 0 4px 20px rgba(255, 176, 0, 0.3);
}

[data-theme="terminal"] .fab:hover {
    box-shadow: 0 6px 25px rgba(255, 176, 0, 0.5);
}

/* Terminal input focus */
[data-theme="terminal"] .form-input:focus,
[data-theme="terminal"] .form-select:focus,
[data-theme="terminal"] .form-textarea:focus,
[data-theme="terminal"] .search-input:focus {
    border-color: #ffb000;
    box-shadow: 0 0 0 2px rgba(255, 176, 0, 0.3);
}

/* Terminal modal */
[data-theme="terminal"] .modal-header {
    background: #1a140a;
    border-bottom-color: #3d2a0f;
}

/* Terminal badge styling */
[data-theme="terminal"] .badge-item.unlocked {
    border-color: #ffb000;
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.3);
}

/* Terminal streak value */
[data-theme="terminal"] .streak-value {
    color: #ffb000;
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.4);
}

/* Terminal profile avatar */
[data-theme="terminal"] .profile-avatar {
    border-color: #ffb000;
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.3);
}

/* Terminal toast styling */
[data-theme="terminal"] .toast {
    background: #151008;
    border-color: #3d2a0f;
}

[data-theme="terminal"] .toast.success {
    border-left-color: #7fff00;
}

[data-theme="terminal"] .toast.info {
    border-left-color: #ffb000;
}

/* Terminal theme preview */
.theme-preview.terminal {
    background: linear-gradient(90deg, #0d0a07, #ffb000, #f5e6c8);
}

/* Terminal links - parchment/off-white highlights */
[data-theme="terminal"] .item-link {
    color: #f5e6c8;
    border-bottom-color: #f5e6c8;
}

[data-theme="terminal"] .item-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Terminal progress bar */
[data-theme="terminal"] .multistep-progress-fill {
    background: #ffb000;
    box-shadow: 0 0 8px rgba(255, 176, 0, 0.5);
}

/* Terminal active states */
[data-theme="terminal"] .theme-option.active,
[data-theme="terminal"] .font-option.active,
[data-theme="terminal"] .anim-option.active {
    border-color: #ffb000;
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.3);
}

/* ==================== 98 THEME (Windows 98 Classic) - SECRET ==================== */
[data-theme="98"] {
    --bg-primary: #008080;
    --bg-secondary: #c0c0c0;
    --bg-tertiary: #dfdfdf;
    --bg-hover: #d4d4d4;
    --bg-active: #ffffff;
    
    --text-primary: #000000;
    --text-secondary: #000080;
    --text-muted: #4a4a4a;
    --text-inverse: #ffffff;
    
    --accent-primary: #000080;
    --accent-secondary: #0000aa;
    --accent-glow: rgba(0, 0, 128, 0.3);
    
    --border-color: #808080;
    --border-active: #000080;
    
    --particle-color: #000080;
    --completion-glow: rgba(0, 128, 0, 0.5);
    
    --success: #008000;
    --warning: #808000;
    --danger: #800000;
    --info: #000080;
    
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Windows 98 specific styling */
[data-theme="98"] .app {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
}

[data-theme="98"] .header {
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    border-bottom: 2px solid #c0c0c0;
}

[data-theme="98"] .header-logo {
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    font-weight: bold;
}

[data-theme="98"] .header-logo span {
    color: #ffffff !important;
}

[data-theme="98"] .btn,
[data-theme="98"] .item-card,
[data-theme="98"] .note-card,
[data-theme="98"] .modal {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    border-radius: 0;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
}

[data-theme="98"] .btn:active,
[data-theme="98"] .item-card:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
}

[data-theme="98"] .tab-bar {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-radius: 0;
}

[data-theme="98"] .tab-btn {
    border-radius: 0;
}

[data-theme="98"] .tab-btn.active {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

[data-theme="98"] .form-input,
[data-theme="98"] .form-select,
[data-theme="98"] .form-textarea {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    border-radius: 0;
}

[data-theme="98"] .modal-header {
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    color: #ffffff;
}

[data-theme="98"] .modal-title {
    color: #ffffff;
    font-weight: bold;
}

[data-theme="98"] .checkbox-visual {
    border-radius: 0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

/* Ensure theme/font option text is readable with 98 theme's light background */
[data-theme="98"] .theme-option,
[data-theme="98"] .font-option,
[data-theme="98"] .anim-option {
    background: #ffffff;
    border-color: #808080;
}

[data-theme="98"] .theme-option span,
[data-theme="98"] .font-option span,
[data-theme="98"] .anim-option span {
    color: #000000;
    text-shadow: none;
}

/* 98 theme links - classic Windows blue link */
[data-theme="98"] .item-link {
    color: #0000ff;
    border-bottom-color: #0000ff;
}

[data-theme="98"] .item-link:hover {
    color: #800080;
    border-bottom-color: #800080;
}

/* ==================== PAPER THEME (Warm Paper/Sepia) - SECRET ==================== */
[data-theme="paper"] {
    --bg-primary: #f5f0e6;
    --bg-secondary: #ebe5d9;
    --bg-tertiary: #e0d9cc;
    --bg-hover: #d6cfbf;
    --bg-active: #ccc4b3;
    
    --text-primary: #3a3226;
    --text-secondary: #5c5347;
    --text-muted: #8a8073;
    --text-inverse: #f5f0e6;
    
    --accent-primary: #8b4513;
    --accent-secondary: #a0522d;
    --accent-glow: rgba(139, 69, 19, 0.3);
    
    --border-color: #c4b9a8;
    --border-active: #8b4513;
    
    --particle-color: #8b4513;
    --completion-glow: rgba(139, 69, 19, 0.4);
    
    --success: #228b22;
    --warning: #b8860b;
    --danger: #8b0000;
    --info: #4682b4;
    
    --shadow-color: rgba(58, 50, 38, 0.15);
}

/* Paper theme specific styling */
[data-theme="paper"] .header {
    background: #e8e0d0;
    border-bottom: 1px solid #c4b9a8;
}

[data-theme="paper"] .header-logo {
    color: #5c4033;
}

[data-theme="paper"] .item-card,
[data-theme="paper"] .note-card {
    box-shadow: 2px 2px 8px rgba(58, 50, 38, 0.1);
}

[data-theme="paper"] .modal {
    background: #f5f0e6;
    box-shadow: 0 10px 40px rgba(58, 50, 38, 0.2);
}

/* Paper theme links - deep blue accent for readability */
[data-theme="paper"] .item-link {
    color: #4682b4;
    border-bottom-color: #4682b4;
}

[data-theme="paper"] .item-link:hover {
    color: #2f5f8a;
    border-bottom-color: #2f5f8a;
}

/* ==================== VAPORWAVE THEME (80s Retro Digital) - LOCKED ==================== */
[data-theme="vaporwave"] {
    --bg-primary: #1a0a2e;
    --bg-secondary: #16082a;
    --bg-tertiary: #231040;
    --bg-hover: #2e1655;
    --bg-active: #3a1e6a;
    
    --text-primary: #e0d6f6;
    --text-secondary: #b48ede;
    --text-muted: #7a5aaa;
    --text-inverse: #1a0a2e;
    
    --accent-primary: #ff71ce;
    --accent-secondary: #01cdfe;
    --accent-glow: rgba(255, 113, 206, 0.45);
    
    --border-color: #3d1a6e;
    --border-active: #ff71ce;
    
    --particle-color: #ff71ce;
    --completion-glow: rgba(255, 113, 206, 0.6);
    
    --success: #05ffa1;
    --warning: #fffb96;
    --danger: #ff6b6b;
    --info: #01cdfe;
    
    --shadow-color: rgba(26, 10, 46, 0.7);
}

/* Vaporwave specific styling - 80s retro digital aesthetic */
[data-theme="vaporwave"] body::before {
    /* Subtle CRT scanline overlay */
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 113, 206, 0.03) 3px,
        rgba(255, 113, 206, 0.03) 6px
    );
    opacity: 0.6;
}

[data-theme="vaporwave"] .header {
    background: linear-gradient(180deg, #16082a 0%, #1a0a2e 100%);
    border-bottom: 1px solid #3d1a6e;
    box-shadow: 0 2px 20px rgba(255, 113, 206, 0.15);
}

[data-theme="vaporwave"] .header-logo {
    background: linear-gradient(90deg, #ff71ce, #01cdfe, #b967ff);
    background-size: 200% 100%;
    animation: vaporwave-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 113, 206, 0.5));
}

/* Vaporwave gradient button */
[data-theme="vaporwave"] .btn-primary {
    background: linear-gradient(135deg, #ff71ce, #b967ff, #01cdfe);
    background-size: 200% 200%;
    animation: vaporwave-btn 5s ease infinite;
    border: none;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="vaporwave"] .btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px rgba(255, 113, 206, 0.4);
}

/* Vaporwave FAB */
[data-theme="vaporwave"] .fab {
    background: linear-gradient(135deg, #ff71ce, #b967ff);
    box-shadow: 0 4px 20px rgba(255, 113, 206, 0.4),
                0 0 40px rgba(185, 103, 255, 0.2);
}

[data-theme="vaporwave"] .fab:hover {
    box-shadow: 0 6px 30px rgba(255, 113, 206, 0.5),
                0 0 60px rgba(1, 205, 254, 0.3);
}

/* Vaporwave card glow */
[data-theme="vaporwave"] .item-card:hover,
[data-theme="vaporwave"] .note-card:hover {
    box-shadow: 0 0 20px rgba(255, 113, 206, 0.15),
                0 0 40px rgba(185, 103, 255, 0.08);
}

[data-theme="vaporwave"] .note-card::before {
    background: linear-gradient(180deg, #ff71ce, #b967ff, #01cdfe);
}

/* Vaporwave checkboxes */
[data-theme="vaporwave"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="vaporwave"] .subtask-checkbox input:checked + .checkbox-visual {
    background: linear-gradient(135deg, #ff71ce, #b967ff);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(255, 113, 206, 0.5);
}

/* Vaporwave links */
[data-theme="vaporwave"] .item-link {
    color: #01cdfe;
    border-bottom-color: #01cdfe;
    text-shadow: 0 0 6px rgba(1, 205, 254, 0.4);
}

[data-theme="vaporwave"] .item-link:hover {
    color: #ff71ce;
    border-bottom-color: #ff71ce;
    text-shadow: 0 0 6px rgba(255, 113, 206, 0.4);
}

/* Vaporwave streak values */
[data-theme="vaporwave"] .streak-value {
    background: linear-gradient(90deg, #ff71ce, #01cdfe, #b967ff);
    background-size: 200% 100%;
    animation: vaporwave-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vaporwave profile avatar */
[data-theme="vaporwave"] .profile-avatar {
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 113, 206, 0.4),
                0 0 30px rgba(185, 103, 255, 0.2);
}

/* Vaporwave badge unlocked */
[data-theme="vaporwave"] .badge-item.unlocked {
    border-color: #b967ff;
    box-shadow: 0 0 12px rgba(185, 103, 255, 0.3);
}

/* Vaporwave progress bar */
[data-theme="vaporwave"] .multistep-progress-fill {
    background: linear-gradient(90deg, #ff71ce, #01cdfe, #b967ff);
    background-size: 200% 100%;
    animation: vaporwave-shift 3s ease infinite;
    box-shadow: 0 0 6px rgba(255, 113, 206, 0.4);
}

/* Vaporwave form input focus */
[data-theme="vaporwave"] .form-input:focus,
[data-theme="vaporwave"] .form-select:focus,
[data-theme="vaporwave"] .form-textarea:focus,
[data-theme="vaporwave"] .search-input:focus {
    border-color: #b967ff;
    box-shadow: 0 0 0 2px rgba(185, 103, 255, 0.3);
}

/* Vaporwave toast borders */
[data-theme="vaporwave"] .toast.success {
    border-left-color: #05ffa1;
}
[data-theme="vaporwave"] .toast.error {
    border-left-color: #ff6b6b;
}
[data-theme="vaporwave"] .toast.info {
    border-left-color: #01cdfe;
}

/* Vaporwave active option borders */
[data-theme="vaporwave"] .theme-option.active,
[data-theme="vaporwave"] .font-option.active,
[data-theme="vaporwave"] .anim-option.active {
    border-color: #ff71ce;
    box-shadow: 0 0 10px rgba(255, 113, 206, 0.3);
}

/* Vaporwave modal header */
[data-theme="vaporwave"] .modal-header {
    background: linear-gradient(135deg, #1a0a2e, #231040);
    border-bottom-color: #3d1a6e;
}

/* Vaporwave add-item-form focus */
[data-theme="vaporwave"] .add-item-form:focus-within {
    border-color: #b967ff;
    box-shadow: 0 0 10px rgba(185, 103, 255, 0.15);
}

/* Vaporwave item tags */
[data-theme="vaporwave"] .item-tag.type-habit {
    color: #01cdfe;
}
[data-theme="vaporwave"] .item-tag.type-goal {
    color: #05ffa1;
}
[data-theme="vaporwave"] .item-tag.recurring {
    color: #b967ff;
}
[data-theme="vaporwave"] .item-tag.due-date {
    color: #fffb96;
}
[data-theme="vaporwave"] .item-tag.due-date.overdue {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

/* Vaporwave scrollbar */
[data-theme="vaporwave"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff71ce, #b967ff, #01cdfe);
}

@keyframes vaporwave-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes vaporwave-btn {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Vaporwave theme preview */
.theme-preview.vaporwave {
    background: linear-gradient(135deg, #1a0a2e, #ff71ce, #01cdfe, #b967ff);
}

/* ==================== CUSTOM THEME (User Defined) - LOCKED ==================== */
[data-theme="custom"] {
    --bg-primary: var(--custom-bg-primary, #0a0a0a);
    --bg-secondary: var(--custom-bg-secondary, #141414);
    --bg-tertiary: var(--custom-bg-tertiary, #1a1a1a);
    --bg-hover: var(--custom-bg-hover, #222222);
    --bg-active: var(--custom-bg-active, #2a2a2a);
    
    --text-primary: var(--custom-text-primary, #e0e0e0);
    --text-secondary: var(--custom-text-secondary, #888888);
    --text-muted: var(--custom-text-muted, #555555);
    
    --accent-primary: var(--custom-accent-primary, #ffffff);
    --accent-secondary: var(--custom-accent-secondary, #aaaaaa);
    --accent-glow: var(--custom-accent-glow, rgba(255, 255, 255, 0.3));
    
    --border-color: var(--custom-border-color, #333333);
    --border-active: var(--custom-border-active, #555555);
    
    --particle-color: var(--custom-particle-color, #ffffff);
    --completion-glow: var(--custom-completion-glow, rgba(255, 255, 255, 0.5));
}

/* ==================== PARC THEME (Xerox PARC / Bauhaus inspired) - SECRET ==================== */
[data-theme="parc"] {
    --bg-primary: #f5f5f0;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e3;
    --bg-hover: #dcdcd7;
    --bg-active: #d0d0cb;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --text-inverse: #ffffff;
    
    --accent-primary: #dd0000;
    --accent-secondary: #0033cc;
    --accent-glow: rgba(221, 0, 0, 0.25);
    
    --border-color: #1a1a1a;
    --border-active: #dd0000;
    
    --particle-color: #dd0000;
    --completion-glow: rgba(221, 0, 0, 0.4);
    
    --success: #008800;
    --warning: #ddaa00;
    --danger: #dd0000;
    --info: #0033cc;
    
    --shadow-color: rgba(0, 0, 0, 0.15);
}

/* PARC theme specific styling - Bauhaus influenced, high contrast, skeuomorphic minimalism */
[data-theme="parc"] body::before {
    /* Disable scanlines for cleaner PARC look */
    display: none;
}

[data-theme="parc"] .header {
    background: #ffffff;
    border-bottom: 3px solid #1a1a1a;
    box-shadow: none;
}

[data-theme="parc"] .header-logo {
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

[data-theme="parc"] .header-logo span:first-child {
    color: #dd0000;
}

[data-theme="parc"] .header-logo span:last-child {
    color: #1a1a1a;
}

/* PARC buttons - flat, bold, geometric */
[data-theme="parc"] .btn {
    border-radius: 0;
    border: 2px solid #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="parc"] .btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="parc"] .btn-primary {
    background: #dd0000;
    border-color: #dd0000;
    color: #ffffff;
}

[data-theme="parc"] .btn-primary:hover {
    background: #aa0000;
    border-color: #aa0000;
}

/* PARC cards - clean, bordered, minimal shadows */
[data-theme="parc"] .item-card,
[data-theme="parc"] .note-card {
    border: 2px solid #1a1a1a;
    border-radius: 0;
    box-shadow: 3px 3px 0 #1a1a1a;
    transition: all 0.15s ease;
}

[data-theme="parc"] .item-card:hover,
[data-theme="parc"] .note-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #1a1a1a;
}

[data-theme="parc"] .note-card::before {
    background: #dd0000;
    width: 4px;
}

/* PARC checkboxes - geometric, bold */
[data-theme="parc"] .checkbox-visual {
    border-radius: 0;
    border: 2px solid #1a1a1a;
    background: #ffffff;
}

[data-theme="parc"] .item-checkbox input:checked + .checkbox-visual,
[data-theme="parc"] .subtask-checkbox input:checked + .checkbox-visual {
    background: #dd0000;
    border-color: #dd0000;
}

/* Habit circular checkbox override - make it square for PARC */
[data-theme="parc"] .item-checkbox[data-type="habit"] .checkbox-visual {
    border-radius: 0;
}

/* Goal dashed checkbox - solid for PARC */
[data-theme="parc"] .item-checkbox[data-type="goal"] .checkbox-visual {
    border-style: solid;
    border-width: 3px;
}

/* PARC modals */
[data-theme="parc"] .modal {
    border-radius: 0;
    border: 3px solid #1a1a1a;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="parc"] .modal-header {
    background: #0033cc;
    border-bottom: 2px solid #1a1a1a;
}

[data-theme="parc"] .modal-title {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

[data-theme="parc"] .modal-close {
    color: #ffffff;
}

[data-theme="parc"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* PARC form inputs - clean, bordered */
[data-theme="parc"] .form-input,
[data-theme="parc"] .form-select,
[data-theme="parc"] .form-textarea {
    border-radius: 0;
    border: 2px solid #1a1a1a;
    background: #ffffff;
}

[data-theme="parc"] .form-input:focus,
[data-theme="parc"] .form-select:focus,
[data-theme="parc"] .form-textarea:focus {
    border-color: #dd0000;
    box-shadow: 0 0 0 2px rgba(221, 0, 0, 0.2);
}

/* PARC search */
[data-theme="parc"] .search-input {
    border-radius: 0;
    border: 2px solid #1a1a1a;
}

[data-theme="parc"] .search-input:focus {
    border-color: #0033cc;
    box-shadow: 0 0 0 2px rgba(0, 51, 204, 0.2);
}

/* PARC FAB - square, bold */
[data-theme="parc"] .fab {
    border-radius: 0;
    background: #dd0000;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0 #1a1a1a;
}

[data-theme="parc"] .fab:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1a1a1a;
}

/* PARC tags - bold, colored */
[data-theme="parc"] .item-tag {
    border-radius: 0;
    border: 1px solid #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

[data-theme="parc"] .item-tag.type-habit {
    background: #ddaa00;
    color: #1a1a1a;
}

[data-theme="parc"] .item-tag.type-goal {
    background: #0033cc;
    color: #ffffff;
}

[data-theme="parc"] .item-tag.recurring {
    background: #008800;
    color: #ffffff;
}

/* PARC progress bar */
[data-theme="parc"] .multistep-progress {
    height: 4px;
    background: #e8e8e3;
    border: 1px solid #1a1a1a;
}

[data-theme="parc"] .multistep-progress-fill {
    background: #dd0000;
}

/* PARC profile section */
[data-theme="parc"] .profile-header {
    border: 2px solid #1a1a1a;
    border-radius: 0;
    background: #ffffff;
}

[data-theme="parc"] .profile-avatar {
    border: 3px solid #dd0000;
    border-radius: 0;
}

[data-theme="parc"] .streak-value {
    color: #dd0000;
}

/* PARC badges */
[data-theme="parc"] .badge-item {
    border-radius: 0;
    border: 2px solid #1a1a1a;
}

[data-theme="parc"] .badge-item.unlocked {
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

/* PARC settings sections */
[data-theme="parc"] .settings-section,
[data-theme="parc"] .badges-section {
    border-radius: 0;
    border: 2px solid #1a1a1a;
}

/* PARC theme option preview */
.theme-preview.parc {
    background: linear-gradient(135deg, #f5f5f0 0%, #dd0000 35%, #0033cc 65%, #ddaa00 100%);
    border: 2px solid #1a1a1a;
}

/* PARC links - bold blue accent */
[data-theme="parc"] .item-link {
    color: #0033cc;
    border-bottom-color: #0033cc;
    font-weight: 600;
}

[data-theme="parc"] .item-link:hover {
    color: #dd0000;
    border-bottom-color: #dd0000;
}

/* PARC toasts */
[data-theme="parc"] .toast {
    border-radius: 0;
    border: 2px solid #1a1a1a;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

/* PARC theme/font/anim options */
[data-theme="parc"] .theme-option,
[data-theme="parc"] .font-option,
[data-theme="parc"] .anim-option {
    border-radius: 0;
    border: 2px solid #1a1a1a;
}

[data-theme="parc"] .theme-option.active,
[data-theme="parc"] .font-option.active,
[data-theme="parc"] .anim-option.active {
    border-color: #dd0000;
    box-shadow: 3px 3px 0 #dd0000;
}

/* ==================== FONT DEFINITIONS ==================== */
[data-font="outfit"] {
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-font="mono"] {
    --font-family: 'JetBrains Mono', 'Courier New', monospace;
}

[data-font="playfair"] {
    --font-family: 'Playfair Display', Georgia, serif;
}

[data-font="space"] {
    --font-family: 'Space Grotesk', -apple-system, sans-serif;
}

[data-font="crimson"] {
    --font-family: 'Crimson Pro', Georgia, serif;
}

[data-font="firacode"] {
    --font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

[data-font="vt323"] {
    --font-family: 'VT323', 'Courier New', monospace;
    letter-spacing: 0.05em;
}

[data-font="inter"] {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.01em;
}

[data-font="sourcesans"] {
    --font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}
