/**
 * Modern Design Themes
 * 5 distinct visual themes: Dark Mode, Glassmorphism, Neumorphism, Minimalism, Bold/Vibrant
 */

/* ========================================
   DARK MODE THEME
   Energy-efficient, sleek, reduces eye strain
   ======================================== */
[data-theme="darkmode"] {
    --primary-gradient-start: #1a1a2e;
    --primary-gradient-end: #16213e;
    --primary-button: #4361ee;
    --primary-button-hover: #3a56d4;
    --secondary-button: #7209b7;
    --secondary-button-hover: #560a86;
    --record-button: #ef233c;
    --record-button-hover: #d90429;
    --background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
    --card-background: #1e1e32;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-light: #6c757d;
    --accent: #4361ee;
    --accent-light: rgba(67, 97, 238, 0.15);
    --border: rgba(255, 255, 255, 0.1);
    --success: #00f5d4;
    --error: #ef233c;
    --warning: #fee440;
    --info: #4cc9f0;
    
    /* Dark mode specific */
    --surface-elevated: #252542;
    --glow-color: rgba(67, 97, 238, 0.4);
}

[data-theme="darkmode"] .app-shell {
    background: rgba(30, 30, 50, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="darkmode"] .container {
    background: var(--card-background);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="darkmode"] .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="darkmode"] .btn:hover {
    box-shadow: 0 6px 20px var(--glow-color);
}

[data-theme="darkmode"] .nav-item.active {
    box-shadow: 0 4px 20px var(--glow-color);
}

/* ========================================
   GLASSMORPHISM THEME
   Frosted glass effect, depth, futuristic
   ======================================== */
[data-theme="glassmorphism"] {
    --primary-gradient-start: #0f2027;
    --primary-gradient-end: #2c5364;
    --primary-button: #1e7a9c;
    --primary-button-hover: #1a6d8a;
    --secondary-button: #0e4d6b;
    --secondary-button-hover: #0b3f58;
    --record-button: rgba(239, 35, 60, 0.9);
    --record-button-hover: rgba(217, 4, 41, 1);
    --background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --card-background: rgba(15, 20, 38, 0.42);
    --text-primary: #f8fbff;
    --text-secondary: #d7e0f3;
    --text-light: #b8c4de;
    --accent: #7dd3e8;
    --accent-light: rgba(125, 211, 232, 0.15);
    --border: rgba(125, 211, 232, 0.25);
    --success: #00f5d4;
    --error: #ff6b6b;
    --warning: #feca57;
    --info: #7dd3e8;
    --glow-color: rgba(125, 211, 232, 0.35);

    /* Glass specific */
    --glass-blur: 20px;
    --glass-saturation: 180%;
}

[data-theme="glassmorphism"] .app-shell {
    background: rgba(10, 25, 35, 0.32);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-color: rgba(125, 211, 232, 0.2);
}

[data-theme="glassmorphism"] .container {
    background: rgba(10, 25, 35, 0.38);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    box-shadow: 0 8px 32px rgba(4, 14, 20, 0.42);
    border: 1px solid rgba(125, 211, 232, 0.15);
}

[data-theme="glassmorphism"] .sidebar {
    background: rgba(10, 25, 35, 0.34);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border-color: rgba(125, 211, 232, 0.15);
}

[data-theme="glassmorphism"] .modal-content {
    background: rgba(10, 25, 35, 0.55);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 1px solid rgba(125, 211, 232, 0.2);
}

[data-theme="glassmorphism"] .btn {
    background: rgba(10, 25, 35, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 211, 232, 0.25);
    box-shadow: 0 4px 15px rgba(4, 14, 20, 0.22);
}

[data-theme="glassmorphism"] .btn:hover {
    background: rgba(15, 40, 55, 0.58);
    box-shadow: 0 8px 25px rgba(4, 14, 20, 0.28);
}

[data-theme="glassmorphism"] .btn-primary {
    background: linear-gradient(135deg, rgba(30, 122, 156, 0.9), rgba(44, 83, 100, 0.9));
    border: 1px solid rgba(125, 211, 232, 0.3);
}

[data-theme="glassmorphism"] .nav-item {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

[data-theme="glassmorphism"] .nav-item:hover {
    background: rgba(15, 40, 55, 0.42);
}

[data-theme="glassmorphism"] .nav-item.active {
    background: rgba(30, 122, 156, 0.35);
    box-shadow: 0 4px 15px rgba(125, 211, 232, 0.2);
}

[data-theme="glassmorphism"] header,
[data-theme="glassmorphism"] .section {
    background: rgba(10, 25, 35, 0.26);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ========================================
   NEUMORPHISM THEME
   Soft, extruded shapes, minimalist depth
   ======================================== */
[data-theme="neumorphism"] {
    --primary-gradient-start: #e0e5ec;
    --primary-gradient-end: #e0e5ec;
    --primary-button: #5f59e8;
    --primary-button-hover: #524dce;
    --secondary-button: #8f87f3;
    --secondary-button-hover: #7c75dd;
    --record-button: #ff6b6b;
    --record-button-hover: #ee5a52;
    --background: #e0e5ec;
    --card-background: #e0e5ec;
    --text-primary: #2d3748;
    --text-secondary: #3f4b60;
    --text-light: #616e85;
    --accent: #5f59e8;
    --accent-light: rgba(95, 89, 232, 0.12);
    --border: transparent;
    --success: #48bb78;
    --error: #fc8181;
    --warning: #f6ad55;
    --info: #63b3ed;
    
    /* Neumorphism specific - Enhanced for smoother, softer appearance */
    --neu-shadow-light: rgba(255, 255, 255, 0.9);
    --neu-shadow-dark: rgba(163, 177, 198, 0.4);
    --neu-bg: #e0e5ec;
    --neu-primary-shadow: rgba(108, 99, 255, 0.3);
}

[data-theme="neumorphism"] body {
    background: var(--neu-bg);
}

[data-theme="neumorphism"] .app-shell {
    background: var(--neu-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 20px 20px 60px var(--neu-shadow-dark),
                -20px -20px 60px var(--neu-shadow-light);
}

[data-theme="neumorphism"] .container {
    background: var(--neu-bg);
    border-radius: 16px;
    box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
                inset -6px -6px 12px var(--neu-shadow-light);
    border: none;
}

[data-theme="neumorphism"] .sidebar {
    background: var(--neu-bg);
    border: none;
    box-shadow: 10px 0 25px var(--neu-shadow-dark),
                -10px 0 25px var(--neu-shadow-light);
}

[data-theme="neumorphism"] .btn {
    background: var(--neu-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 6px 6px 20px var(--neu-shadow-dark),
                -6px -6px 20px var(--neu-shadow-light);
    transition: all 0.2s ease;
}

[data-theme="neumorphism"] .btn:hover {
    box-shadow: 8px 8px 25px var(--neu-shadow-dark),
                -8px -8px 25px var(--neu-shadow-light);
}

[data-theme="neumorphism"] .btn:active,
[data-theme="neumorphism"] .btn.active {
    box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
                inset -6px -6px 12px var(--neu-shadow-light);
}

[data-theme="neumorphism"] .btn-primary {
    background: var(--primary-button);
    color: white;
    border-radius: 16px;
    box-shadow: 6px 6px 20px var(--neu-primary-shadow),
                -6px -6px 20px var(--neu-shadow-light);
}

[data-theme="neumorphism"] .nav-item {
    background: var(--neu-bg);
    border-radius: 12px;
    box-shadow: 4px 4px 12px var(--neu-shadow-dark),
                -4px -4px 12px var(--neu-shadow-light);
    margin: 6px 4px;
    transition: all 0.2s ease;
}

[data-theme="neumorphism"] .nav-item:hover {
    box-shadow: 6px 6px 15px var(--neu-shadow-dark),
                -6px -6px 15px var(--neu-shadow-light);
}

[data-theme="neumorphism"] .nav-item.active {
    box-shadow: inset 5px 5px 10px var(--neu-shadow-dark),
                inset -5px -5px 10px var(--neu-shadow-light);
    background: var(--neu-bg);
    color: var(--accent);
}

[data-theme="neumorphism"] .modal-content {
    background: var(--neu-bg);
    border-radius: 20px;
    box-shadow: 20px 20px 60px var(--neu-shadow-dark),
                -20px -20px 60px var(--neu-shadow-light);
    border: none;
}

[data-theme="neumorphism"] input,
[data-theme="neumorphism"] select,
[data-theme="neumorphism"] textarea {
    background: var(--neu-bg);
    border: none;
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px var(--neu-shadow-dark),
                inset -4px -4px 8px var(--neu-shadow-light);
    transition: all 0.2s ease;
}

[data-theme="neumorphism"] input:focus,
[data-theme="neumorphism"] select:focus,
[data-theme="neumorphism"] textarea:focus {
    outline: none;
    box-shadow: inset 5px 5px 10px var(--neu-shadow-dark),
                inset -5px -5px 10px var(--neu-shadow-light);
}

/* Range slider styling */
[data-theme="neumorphism"] input[type="range"] {
    background: var(--neu-bg);
    border-radius: 20px;
    box-shadow: inset 3px 3px 6px var(--neu-shadow-dark),
                inset -3px -3px 6px var(--neu-shadow-light);
}

[data-theme="neumorphism"] input[type="range"]::-webkit-slider-thumb {
    background: var(--neu-bg);
    border: none;
    border-radius: 50%;
    box-shadow: 4px 4px 8px var(--neu-shadow-dark),
                -4px -4px 8px var(--neu-shadow-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="neumorphism"] input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 6px 6px 12px var(--neu-shadow-dark),
                -6px -6px 12px var(--neu-shadow-light);
}

[data-theme="neumorphism"] input[type="range"]::-moz-range-thumb {
    background: var(--neu-bg);
    border: none;
    border-radius: 50%;
    box-shadow: 4px 4px 8px var(--neu-shadow-dark),
                -4px -4px 8px var(--neu-shadow-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="neumorphism"] input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 6px 6px 12px var(--neu-shadow-dark),
                -6px -6px 12px var(--neu-shadow-light);
}

/* ========================================
   MINIMALISM THEME
   Clean, simple, focused on functionality
   ======================================== */
[data-theme="minimalism"] {
    --primary-gradient-start: #ffffff;
    --primary-gradient-end: #f5f5f7;
    --primary-button: #1d1d1f;
    --primary-button-hover: #000000;
    --secondary-button: #515154;
    --secondary-button-hover: #3a3a3c;
    --record-button: #ff3b30;
    --record-button-hover: #d63027;
    --background: #ffffff;
    --card-background: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-light: #86868b;
    --accent: #0071e3;
    --accent-light: rgba(0, 113, 227, 0.08);
    --border: #d2d2d7;
    --success: #34c759;
    --error: #ff3b30;
    --warning: #ff9500;
    --info: #5ac8fa;
}

[data-theme="minimalism"] body {
    background: #f5f5f7;
}

[data-theme="minimalism"] .app-shell {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="minimalism"] .container {
    background: #ffffff;
    border: none;
    box-shadow: none;
}

[data-theme="minimalism"] .sidebar {
    background: #f5f5f7;
    border-right: 1px solid #d2d2d7;
    box-shadow: none;
}

[data-theme="minimalism"] .btn {
    border-radius: 980px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 12px 24px;
    box-shadow: none;
    transition: all 0.2s ease;
}

[data-theme="minimalism"] .btn-primary {
    background: var(--accent);
    color: white;
}

[data-theme="minimalism"] .btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

[data-theme="minimalism"] .btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

[data-theme="minimalism"] .nav-item {
    border-radius: 8px;
    font-weight: 500;
}

[data-theme="minimalism"] .nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: none;
}

[data-theme="minimalism"] .nav-item.active {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent);
    box-shadow: none;
}

[data-theme="minimalism"] .modal-content {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="minimalism"] header {
    border-bottom: 1px solid #d2d2d7;
}

[data-theme="minimalism"] h1,
[data-theme="minimalism"] h2,
[data-theme="minimalism"] h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ========================================
   BOLD/VIBRANT THEME
   Electric colors, neon accents, standout design
   ======================================== */
[data-theme="vibrant"] {
    --primary-gradient-start: #00f260;
    --primary-gradient-end: #0575e6;
    --primary-button: #00f260;
    --primary-button-hover: #00d654;
    --secondary-button: #0575e6;
    --secondary-button-hover: #0466cc;
    --record-button: #ff0844;
    --record-button-hover: #e6073d;
    --background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a1a2e 100%);
    --card-background: #0f0f1a;
    --text-primary: #ffffff;
    --text-secondary: #d3ddff;
    --text-light: #a8b5da;
    --accent: #00f260;
    --accent-light: rgba(0, 242, 96, 0.15);
    --border: rgba(0, 242, 96, 0.28);
    --success: #00f260;
    --error: #ff0844;
    --warning: #f9f871;
    --info: #0575e6;
    
    /* Vibrant specific */
    --neon-glow: 0 0 20px rgba(0, 242, 96, 0.5), 0 0 40px rgba(0, 242, 96, 0.3);
    --neon-glow-secondary: 0 0 20px rgba(5, 117, 230, 0.5), 0 0 40px rgba(5, 117, 230, 0.3);
}

[data-theme="vibrant"] body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a1a2e 100%);
}

[data-theme="vibrant"] .app-shell {
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(0, 242, 96, 0.3);
    box-shadow: 0 0 60px rgba(0, 242, 96, 0.1), 0 0 120px rgba(5, 117, 230, 0.1);
}

[data-theme="vibrant"] .container {
    background: var(--card-background);
    border: 1px solid rgba(0, 242, 96, 0.1);
    box-shadow: inset 0 1px 0 rgba(0, 242, 96, 0.1);
}

[data-theme="vibrant"] .sidebar {
    background: rgba(15, 15, 26, 0.95);
    border-right: 1px solid rgba(0, 242, 96, 0.2);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

[data-theme="vibrant"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-button), var(--secondary-button));
    color: #0a0a0a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--neon-glow);
}

[data-theme="vibrant"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 96, 0.6), 0 0 60px rgba(0, 242, 96, 0.4);
}

[data-theme="vibrant"] .nav-item {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

[data-theme="vibrant"] .nav-item:hover {
    background: rgba(0, 242, 96, 0.1);
    border-color: rgba(0, 242, 96, 0.3);
    text-shadow: 0 0 10px rgba(0, 242, 96, 0.5);
}

[data-theme="vibrant"] .nav-item.active {
    background: linear-gradient(135deg, rgba(0, 242, 96, 0.2), rgba(5, 117, 230, 0.2));
    border: 1px solid rgba(0, 242, 96, 0.5);
    box-shadow: var(--neon-glow);
    color: var(--accent);
}

[data-theme="vibrant"] .modal-content {
    background: rgba(15, 15, 26, 0.98);
    border: 1px solid rgba(0, 242, 96, 0.3);
    box-shadow: 0 0 60px rgba(0, 242, 96, 0.2);
}

[data-theme="vibrant"] h1,
[data-theme="vibrant"] h2 {
    background: linear-gradient(135deg, var(--primary-button), var(--secondary-button));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="vibrant"] .sidebar-logo {
    background: linear-gradient(135deg, var(--primary-button), var(--secondary-button));
    box-shadow: var(--neon-glow);
}

[data-theme="vibrant"] input:focus,
[data-theme="vibrant"] select:focus,
[data-theme="vibrant"] textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 242, 96, 0.2), var(--neon-glow);
}

/* ========================================
   SINGS CLUB (default)
   Brand purple-violet, dark
   ======================================== */
[data-theme="default"] {
    --primary-gradient-start: #1a0533;
    --primary-gradient-end: #2d0b5e;
    --primary-button: #8b5cf6;
    --primary-button-hover: #7c3aed;
    --secondary-button: #ec4899;
    --secondary-button-hover: #db2777;
    --record-button: #ef4444;
    --record-button-hover: #dc2626;
    --background: linear-gradient(135deg, #05000e 0%, #1a0533 50%, #0d021f 100%);
    --card-background: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-light: #9d8fca;
    --accent: #8b5cf6;
    --accent-light: rgba(139, 92, 246, 0.15);
    --border: rgba(139, 92, 246, 0.25);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    --glow-color: rgba(139, 92, 246, 0.4);
    --surface-elevated: rgba(139, 92, 246, 0.1);
}

/* ========================================
   DEEP OCEAN (ocean)
   Deep navy, sapphire, cyan accent
   ======================================== */
[data-theme="ocean"] {
    --primary-gradient-start: #000428;
    --primary-gradient-end: #004e92;
    --primary-button: #0ea5e9;
    --primary-button-hover: #0284c7;
    --secondary-button: #0d9488;
    --secondary-button-hover: #0f766e;
    --record-button: #f43f5e;
    --record-button-hover: #e11d48;
    --background: linear-gradient(135deg, #00010a 0%, #000f2e 50%, #001a3e 100%);
    --card-background: rgba(0, 30, 80, 0.6);
    --text-primary: #e0f2fe;
    --text-secondary: #7dd3fc;
    --text-light: #38bdf8;
    --accent: #0ea5e9;
    --accent-light: rgba(14, 165, 233, 0.15);
    --border: rgba(14, 165, 233, 0.25);
    --success: #34d399;
    --error: #f43f5e;
    --warning: #fbbf24;
    --info: #38bdf8;
    --glow-color: rgba(14, 165, 233, 0.4);
    --surface-elevated: rgba(14, 165, 233, 0.1);
}

/* ========================================
   GOLDEN HOUR (sunset)
   Dark amber, warm orange accent
   ======================================== */
[data-theme="sunset"] {
    --primary-gradient-start: #1a0800;
    --primary-gradient-end: #3d1500;
    --primary-button: #f97316;
    --primary-button-hover: #ea580c;
    --secondary-button: #dc2626;
    --secondary-button-hover: #b91c1c;
    --record-button: #e11d48;
    --record-button-hover: #be123c;
    --background: linear-gradient(135deg, #0a0400 0%, #1a0800 50%, #2c0e00 100%);
    --card-background: rgba(60, 20, 0, 0.55);
    --text-primary: #ffffff;
    --text-secondary: #fed7aa;
    --text-light: #fb923c;
    --accent: #f97316;
    --accent-light: rgba(249, 115, 22, 0.15);
    --border: rgba(249, 115, 22, 0.25);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #fbbf24;
    --info: #38bdf8;
    --glow-color: rgba(249, 115, 22, 0.4);
    --surface-elevated: rgba(249, 115, 22, 0.1);
}

/* ========================================
   MIDNIGHT FOREST (forest)
   Deep green-black, emerald accent
   ======================================== */
[data-theme="forest"] {
    --primary-gradient-start: #020d08;
    --primary-gradient-end: #0b2416;
    --primary-button: #16a34a;
    --primary-button-hover: #15803d;
    --secondary-button: #0d9488;
    --secondary-button-hover: #0f766e;
    --record-button: #ef4444;
    --record-button-hover: #dc2626;
    --background: linear-gradient(135deg, #010804 0%, #041a0c 50%, #071a0e 100%);
    --card-background: rgba(5, 30, 15, 0.6);
    --text-primary: #dcfce7;
    --text-secondary: #86efac;
    --text-light: #4ade80;
    --accent: #22c55e;
    --accent-light: rgba(34, 197, 94, 0.15);
    --border: rgba(34, 197, 94, 0.25);
    --success: #4ade80;
    --error: #f43f5e;
    --warning: #fbbf24;
    --info: #38bdf8;
    --glow-color: rgba(34, 197, 94, 0.4);
    --surface-elevated: rgba(34, 197, 94, 0.1);
}

/* ========================================
   GRAPHITE (dark)
   GitHub-style clean dark
   ======================================== */
[data-theme="dark"] {
    --primary-gradient-start: #0d1117;
    --primary-gradient-end: #161b22;
    --primary-button: #388bfd;
    --primary-button-hover: #1f6feb;
    --secondary-button: #8b949e;
    --secondary-button-hover: #6e7681;
    --record-button: #f85149;
    --record-button-hover: #da3633;
    --background: #0d1117;
    --card-background: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-light: #6e7681;
    --accent: #388bfd;
    --accent-light: rgba(56, 139, 253, 0.1);
    --border: rgba(240, 246, 252, 0.1);
    --success: #3fb950;
    --error: #f85149;
    --warning: #d29922;
    --info: #58a6ff;
    --glow-color: rgba(56, 139, 253, 0.35);
    --surface-elevated: #1c2128;
}

[data-theme="dark"] body { background: #0d1117; }

[data-theme="dark"] .app-shell {
    background: #0d1117;
    border-color: rgba(240, 246, 252, 0.1);
}

[data-theme="dark"] .container {
    background: #161b22;
    border: 1px solid rgba(240, 246, 252, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar {
    background: #0d1117;
    border-right: 1px solid rgba(240, 246, 252, 0.1);
}

/* ========================================
   DEEP AMETHYST (midnight)
   Near-black with rich violet
   ======================================== */
[data-theme="midnight"] {
    --primary-gradient-start: #07040f;
    --primary-gradient-end: #130b28;
    --primary-button: #7c3aed;
    --primary-button-hover: #6d28d9;
    --secondary-button: #9333ea;
    --secondary-button-hover: #7e22ce;
    --record-button: #dc2626;
    --record-button-hover: #b91c1c;
    --background: linear-gradient(135deg, #04020a 0%, #0f0621 50%, #07040f 100%);
    --card-background: rgba(20, 8, 50, 0.7);
    --text-primary: #ede9fe;
    --text-secondary: #c4b5fd;
    --text-light: #a78bfa;
    --accent: #7c3aed;
    --accent-light: rgba(124, 58, 237, 0.15);
    --border: rgba(124, 58, 237, 0.3);
    --success: #4ade80;
    --error: #f87171;
    --warning: #fbbf24;
    --info: #818cf8;
    --glow-color: rgba(124, 58, 237, 0.45);
    --surface-elevated: rgba(124, 58, 237, 0.1);
}

/* ========================================
   SAKURA NIGHT (cherry)
   Deep rose-black, pink accent
   ======================================== */
[data-theme="cherry"] {
    --primary-gradient-start: #0d040a;
    --primary-gradient-end: #220510;
    --primary-button: #fb7185;
    --primary-button-hover: #f43f5e;
    --secondary-button: #e879a0;
    --secondary-button-hover: #db2777;
    --record-button: #be123c;
    --record-button-hover: #9f1239;
    --background: linear-gradient(135deg, #070206 0%, #150308 50%, #0d040a 100%);
    --card-background: rgba(40, 5, 20, 0.65);
    --text-primary: #ffe4e6;
    --text-secondary: #fda4af;
    --text-light: #fb7185;
    --accent: #fb7185;
    --accent-light: rgba(251, 113, 133, 0.15);
    --border: rgba(251, 113, 133, 0.25);
    --success: #4ade80;
    --error: #f43f5e;
    --warning: #fbbf24;
    --info: #818cf8;
    --glow-color: rgba(251, 113, 133, 0.4);
    --surface-elevated: rgba(251, 113, 133, 0.1);
}

/* ========================================
   GOTH MOMMY (gothMommy)
   Pure monochrome black, fixed semantics
   ======================================== */
[data-theme="gothMommy"] {
    --primary-gradient-start: #0a0a0a;
    --primary-gradient-end: #1a1a1a;
    --primary-button: #3f3f3f;
    --primary-button-hover: #525252;
    --secondary-button: #2a2a2a;
    --secondary-button-hover: #383838;
    --record-button: #7f1d1d;
    --record-button-hover: #991b1b;
    --background: linear-gradient(135deg, #050505 0%, #0f0f0f 50%, #0a0a0a 100%);
    --card-background: #141414;
    --text-primary: #d4d4d4;
    --text-secondary: #a3a3a3;
    --text-light: #737373;
    --accent: #525252;
    --accent-light: rgba(82, 82, 82, 0.15);
    --border: rgba(82, 82, 82, 0.3);
    --success: #86efac;
    --error: #fca5a5;
    --warning: #fde68a;
    --info: #bae6fd;
    --glow-color: rgba(82, 82, 82, 0.3);
    --surface-elevated: #1f1f1f;
}

[data-theme="gothMommy"] body { background: #050505; }

[data-theme="gothMommy"] .container {
    background: #141414;
    border: 1px solid rgba(82, 82, 82, 0.2);
    box-shadow: none;
}

[data-theme="gothMommy"] .sidebar {
    background: #0a0a0a;
    border-right: 1px solid rgba(82, 82, 82, 0.2);
}

/* ========================================
   LIQUID CRYSTAL (liquidGlass)
   Dark navy, aqua-violet glass
   ======================================== */
[data-theme="liquidGlass"] {
    --primary-gradient-start: #080e1f;
    --primary-gradient-end: #131b35;
    --primary-button: #67e8f9;
    --primary-button-hover: #22d3ee;
    --secondary-button: #a78bfa;
    --secondary-button-hover: #7c3aed;
    --record-button: #fb7185;
    --record-button-hover: #f43f5e;
    --background: linear-gradient(135deg, #040810 0%, #0a1224 50%, #080e1f 100%);
    --card-background: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f9ff;
    --text-secondary: #bae6fd;
    --text-light: #7dd3fc;
    --accent: #67e8f9;
    --accent-light: rgba(103, 232, 249, 0.15);
    --border: rgba(103, 232, 249, 0.2);
    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;
    --glow-color: rgba(103, 232, 249, 0.4);
    --glass-blur: 20px;
    --surface-elevated: rgba(103, 232, 249, 0.08);
}

[data-theme="liquidGlass"] .container {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(103, 232, 249, 0.18);
}

[data-theme="liquidGlass"] .sidebar {
    background: rgba(4, 8, 16, 0.85);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid rgba(103, 232, 249, 0.15);
}

/* ========================================
   NEON AURORA (alive)
   Deep space, cyan-violet dual accent
   ======================================== */
[data-theme="alive"] {
    --primary-gradient-start: #04091c;
    --primary-gradient-end: #0e071e;
    --primary-button: #22d3ee;
    --primary-button-hover: #06b6d4;
    --secondary-button: #a855f7;
    --secondary-button-hover: #9333ea;
    --record-button: #fb7185;
    --record-button-hover: #f43f5e;
    --background: linear-gradient(135deg, #02050f 0%, #080d1a 50%, #04091c 100%);
    --card-background: rgba(255, 255, 255, 0.05);
    --text-primary: #f0f4ff;
    --text-secondary: #bfdbfe;
    --text-light: #93c5fd;
    --accent: #22d3ee;
    --accent-light: rgba(34, 211, 238, 0.15);
    --border: rgba(34, 211, 238, 0.2);
    --success: #4ade80;
    --error: #fb7185;
    --warning: #facc15;
    --info: #38bdf8;
    --glow-color: rgba(34, 211, 238, 0.4);
    --surface-elevated: rgba(34, 211, 238, 0.08);
}

/* ========================================
   NEON TOKYO (cyberpunk)
   Near-black, magenta-cyan dual neon
   ======================================== */
[data-theme="cyberpunk"] {
    --primary-gradient-start: #03000e;
    --primary-gradient-end: #0d0022;
    --primary-button: #f0abfc;
    --primary-button-hover: #e879f9;
    --secondary-button: #22d3ee;
    --secondary-button-hover: #06b6d4;
    --record-button: #fb923c;
    --record-button-hover: #f97316;
    --background: linear-gradient(135deg, #020008 0%, #090018 60%, #030010 100%);
    --card-background: rgba(255, 255, 255, 0.04);
    --text-primary: #fdf4ff;
    --text-secondary: #f0abfc;
    --text-light: #d946ef;
    --accent: #e879f9;
    --accent-light: rgba(232, 121, 249, 0.15);
    --border: rgba(232, 121, 249, 0.25);
    --success: #4ade80;
    --error: #f87171;
    --warning: #facc15;
    --info: #22d3ee;
    --glow-color: rgba(232, 121, 249, 0.5);
    --neon-glow-primary: 0 0 20px rgba(232, 121, 249, 0.5), 0 0 40px rgba(232, 121, 249, 0.3);
    --neon-glow-secondary: 0 0 20px rgba(34, 211, 238, 0.5), 0 0 40px rgba(34, 211, 238, 0.3);
    --surface-elevated: rgba(232, 121, 249, 0.08);
}

[data-theme="cyberpunk"] .sidebar {
    background: rgba(2, 0, 8, 0.96);
    border-right: 1px solid rgba(232, 121, 249, 0.2);
}

[data-theme="cyberpunk"] .nav-item:hover {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.1), rgba(34, 211, 238, 0.1));
    border-color: rgba(232, 121, 249, 0.3);
    text-shadow: 0 0 10px rgba(232, 121, 249, 0.5);
}

[data-theme="cyberpunk"] .nav-item.active {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.2), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(232, 121, 249, 0.4);
    box-shadow: var(--neon-glow-primary);
    color: var(--accent);
}

[data-theme="cyberpunk"] .sidebar-logo {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.3), rgba(34, 211, 238, 0.3));
    box-shadow: var(--neon-glow-primary);
}

[data-theme="cyberpunk"] .btn-primary {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.9), rgba(34, 211, 238, 0.9));
    color: #03000e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--neon-glow-primary);
}

[data-theme="cyberpunk"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(232, 121, 249, 0.7), 0 0 70px rgba(34, 211, 238, 0.4);
}

[data-theme="cyberpunk"] h1,
[data-theme="cyberpunk"] h2 {
    background: linear-gradient(135deg, #f0abfc, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BLOODMOON (gothic)
   Near-black, deep crimson accent
   ======================================== */
[data-theme="gothic"] {
    --primary-gradient-start: #050108;
    --primary-gradient-end: #12040f;
    --primary-button: #7f1d1d;
    --primary-button-hover: #991b1b;
    --secondary-button: #581c87;
    --secondary-button-hover: #6b21a8;
    --record-button: #b91c1c;
    --record-button-hover: #991b1b;
    --background: linear-gradient(135deg, #030006 0%, #0a0210 50%, #050108 100%);
    --card-background: rgba(50, 5, 10, 0.6);
    --text-primary: #fef2f2;
    --text-secondary: #fca5a5;
    --text-light: #f87171;
    --accent: #dc2626;
    --accent-light: rgba(220, 38, 38, 0.15);
    --border: rgba(127, 29, 29, 0.4);
    --success: #84cc16;
    --error: #ef4444;
    --warning: #fbbf24;
    --info: #a78bfa;
    --glow-color: rgba(220, 38, 38, 0.4);
    --surface-elevated: rgba(127, 29, 29, 0.15);
}

/* ========================================
   NEON AURORA (alive) — component overrides
   Dual-pulse cyan/violet nav glow
   ======================================== */
@keyframes auroraShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

[data-theme="alive"] .sidebar {
    background: rgba(2, 5, 15, 0.92);
    border-right: 1px solid rgba(34, 211, 238, 0.18);
}

[data-theme="alive"] .nav-item:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.12));
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

[data-theme="alive"] .nav-item.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.18));
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.35), 0 0 40px rgba(168, 85, 247, 0.2);
    color: var(--accent);
    animation: auroraShimmer 3s ease-in-out infinite;
}

[data-theme="alive"] .sidebar-logo {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(168, 85, 247, 0.25));
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

[data-theme="alive"] h1,
[data-theme="alive"] h2 {
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="alive"] .btn-primary {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(168, 85, 247, 0.9));
    color: #02050f;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

[data-theme="alive"] .btn-primary:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

[data-theme="alive"] h1,
[data-theme="alive"] h2,
[data-theme="alive"] h3 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ========================================
   BLOODMOON (gothic) — component overrides
   Deep crimson glow, dramatic shadows
   ======================================== */
[data-theme="gothic"] .sidebar {
    background: rgba(3, 0, 6, 0.96);
    border-right: 1px solid rgba(127, 29, 29, 0.35);
}

[data-theme="gothic"] .nav-item:hover {
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="gothic"] .nav-item.active {
    background: rgba(127, 29, 29, 0.3);
    border: 1px solid rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.25), inset 0 1px 0 rgba(220, 38, 38, 0.1);
    color: #fca5a5;
}

[data-theme="gothic"] .sidebar-logo {
    background: rgba(127, 29, 29, 0.4);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

[data-theme="gothic"] .container {
    background: rgba(50, 5, 10, 0.6);
    border: 1px solid rgba(127, 29, 29, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(220, 38, 38, 0.05);
}

[data-theme="gothic"] h1,
[data-theme="gothic"] h2 {
    background: linear-gradient(135deg, #fca5a5, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* ========================================
   SAKURA NIGHT (cherry) — component overrides
   Rose glow, soft pink luminescence
   ======================================== */
[data-theme="cherry"] .sidebar {
    background: rgba(7, 2, 6, 0.94);
    border-right: 1px solid rgba(251, 113, 133, 0.18);
}

[data-theme="cherry"] .nav-item:hover {
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.3);
    color: var(--accent);
}

[data-theme="cherry"] .nav-item.active {
    background: rgba(251, 113, 133, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.4);
    box-shadow: 0 0 20px rgba(251, 113, 133, 0.3);
    color: var(--accent);
}

[data-theme="cherry"] .sidebar-logo {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.3), rgba(232, 121, 160, 0.3));
    box-shadow: 0 0 12px rgba(251, 113, 133, 0.3);
}

/* ========================================
   DEEP AMETHYST (midnight) — component overrides
   Rich violet glow, jewel depth
   ======================================== */
[data-theme="midnight"] .sidebar {
    background: rgba(4, 2, 10, 0.95);
    border-right: 1px solid rgba(124, 58, 237, 0.25);
}

[data-theme="midnight"] .nav-item:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.35);
}

[data-theme="midnight"] .nav-item.active {
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4), 0 0 50px rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
}

[data-theme="midnight"] .sidebar-logo {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(147, 51, 234, 0.4));
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

[data-theme="midnight"] .container {
    background: rgba(20, 8, 50, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(167, 139, 250, 0.05);
}

/* ========================================
   DEEP OCEAN (ocean) — component overrides
   Navy depths, sapphire edge lighting
   ======================================== */
[data-theme="ocean"] .sidebar {
    background: rgba(0, 1, 10, 0.95);
    border-right: 1px solid rgba(14, 165, 233, 0.2);
}

[data-theme="ocean"] .nav-item:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="ocean"] .nav-item.active {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.45);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
    color: var(--accent);
}

[data-theme="ocean"] .sidebar-logo {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(13, 148, 136, 0.3));
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

[data-theme="ocean"] .container {
    background: rgba(0, 30, 80, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Theme Transition Animation
   ======================================== */
body,
.app-shell,
.container,
.sidebar,
.modal-content,
.btn,
.nav-item,
header {
    transition: background 0.4s ease, 
                color 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* ========================================
   Theme Selection Pills
   ======================================== */
.theme-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.theme-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
}

.theme-pill:hover {
    transform: translateY(-2px);
}

.theme-pill.active {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-pill-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.theme-pill.darkmode .theme-pill-icon {
    background: linear-gradient(135deg, #1a1a2e, #4361ee);
}

.theme-pill.glassmorphism .theme-pill-icon {
    background: linear-gradient(135deg, #0f2027, #2c5364);
    border: 1px solid rgba(125,211,232,0.4);
}

.theme-pill.neumorphism .theme-pill-icon {
    background: #e0e5ec;
    box-shadow: 2px 2px 4px rgba(163,177,198,0.6), -2px -2px 4px rgba(255,255,255,0.8);
}

.theme-pill.minimalism .theme-pill-icon {
    background: #ffffff;
    border: 2px solid #1d1d1f;
}

.theme-pill.vibrant .theme-pill-icon {
    background: linear-gradient(135deg, #00f260, #0575e6);
    box-shadow: 0 0 10px rgba(0,242,96,0.5);
}

.theme-pill.default .theme-pill-icon {
    background: linear-gradient(135deg, #1a0533, #8b5cf6);
    box-shadow: 0 0 8px rgba(139,92,246,0.5);
}

.theme-pill.ocean .theme-pill-icon {
    background: linear-gradient(135deg, #000428, #0ea5e9);
}

.theme-pill.sunset .theme-pill-icon {
    background: linear-gradient(135deg, #1a0800, #f97316);
    box-shadow: 0 0 8px rgba(249,115,22,0.4);
}

.theme-pill.forest .theme-pill-icon {
    background: linear-gradient(135deg, #020d08, #16a34a);
}

.theme-pill.dark .theme-pill-icon {
    background: linear-gradient(135deg, #0d1117, #388bfd);
}

.theme-pill.midnight .theme-pill-icon {
    background: linear-gradient(135deg, #07040f, #7c3aed);
    box-shadow: 0 0 8px rgba(124,58,237,0.4);
}

.theme-pill.cherry .theme-pill-icon {
    background: linear-gradient(135deg, #0d040a, #fb7185);
    box-shadow: 0 0 8px rgba(251,113,133,0.4);
}

.theme-pill.gothMommy .theme-pill-icon {
    background: linear-gradient(135deg, #050505, #3f3f3f);
    border: 1px solid rgba(82,82,82,0.4);
}

.theme-pill.liquidGlass .theme-pill-icon {
    background: linear-gradient(135deg, #080e1f, #67e8f9);
    box-shadow: 0 0 8px rgba(103,232,249,0.4);
}

.theme-pill.alive .theme-pill-icon {
    background: linear-gradient(135deg, #04091c, #22d3ee);
    box-shadow: 0 0 8px rgba(34,211,238,0.4);
}

.theme-pill.cyberpunk .theme-pill-icon {
    background: linear-gradient(135deg, #03000e, #e879f9);
    box-shadow: 0 0 8px rgba(232,121,249,0.5);
}

.theme-pill.gothic .theme-pill-icon {
    background: linear-gradient(135deg, #030006, #dc2626);
    box-shadow: 0 0 8px rgba(220,38,38,0.4);
}
