/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Variables */
:root {
    --radius: 0.625rem;
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.205 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.704 0.191 22.216);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.556 0 0);
    --chart-1: oklch(0.488 0.243 264.376);
    --chart-2: oklch(0.696 0.17 162.48);
    --chart-3: oklch(0.769 0.188 70.08);
    --chart-4: oklch(0.627 0.265 303.9);
    --chart-5: oklch(0.645 0.246 16.439);
}

/* Theme Definitions */

/* Default Dark */
.default-dark {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.205 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.704 0.191 22.216);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.556 0 0);
}

/* Default Light */
.default-light {
    --background: oklch(1 0 0);
    --foreground: oklch(0.145 0 0);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    --primary: oklch(0.205 0 0);
    --primary-foreground: oklch(0.985 0 0);
    --secondary: oklch(0.97 0 0);
    --secondary-foreground: oklch(0.205 0 0);
    --muted: oklch(0.97 0 0);
    --muted-foreground: oklch(0.556 0 0);
    --accent: oklch(0.97 0 0);
    --accent-foreground: oklch(0.205 0 0);
    --destructive: oklch(0.577 0.245 27.325);
    --border: oklch(0.922 0 0);
    --input: oklch(0.922 0 0);
    --ring: oklch(0.708 0 0);
}

/* Purple Aurora */
.purple-aurora {
    --background: oklch(0.12 0.02 280);
    --foreground: oklch(0.95 0.03 300);
    --card: oklch(0.18 0.03 290);
    --card-foreground: oklch(0.95 0.03 300);
    --popover: oklch(0.18 0.03 290);
    --popover-foreground: oklch(0.95 0.03 300);
    --primary: oklch(0.65 0.15 270);
    --primary-foreground: oklch(0.15 0.02 280);
    --secondary: oklch(0.25 0.08 310);
    --secondary-foreground: oklch(0.95 0.03 300);
    --muted: oklch(0.25 0.08 310);
    --muted-foreground: oklch(0.75 0.05 320);
    --accent: oklch(0.35 0.12 330);
    --accent-foreground: oklch(0.95 0.03 300);
    --destructive: oklch(0.6 0.2 20);
    --border: oklch(0.35 0.12 330 / 30%);
    --input: oklch(0.3 0.1 320 / 20%);
    --ring: oklch(0.55 0.15 280);
}

/* Blue Sunset */
.blue-sunset {
    --background: oklch(0.1 0.05 240);
    --foreground: oklch(0.95 0.02 260);
    --card: oklch(0.16 0.08 230);
    --card-foreground: oklch(0.95 0.02 260);
    --popover: oklch(0.16 0.08 230);
    --popover-foreground: oklch(0.95 0.02 260);
    --primary: oklch(0.6 0.15 220);
    --primary-foreground: oklch(0.1 0.02 240);
    --secondary: oklch(0.3 0.12 270);
    --secondary-foreground: oklch(0.95 0.02 260);
    --muted: oklch(0.3 0.12 270);
    --muted-foreground: oklch(0.7 0.08 280);
    --accent: oklch(0.4 0.18 290);
    --accent-foreground: oklch(0.95 0.02 260);
    --destructive: oklch(0.6 0.2 15);
    --border: oklch(0.4 0.18 290 / 30%);
    --input: oklch(0.35 0.15 280 / 20%);
    --ring: oklch(0.5 0.12 230);
}

/* Green Forest */
.green-forest {
    --background: oklch(0.08 0.03 150);
    --foreground: oklch(0.95 0.02 140);
    --card: oklch(0.14 0.05 130);
    --card-foreground: oklch(0.95 0.02 140);
    --popover: oklch(0.14 0.05 130);
    --popover-foreground: oklch(0.95 0.02 140);
    --primary: oklch(0.55 0.12 120);
    --primary-foreground: oklch(0.08 0.02 150);
    --secondary: oklch(0.28 0.08 160);
    --secondary-foreground: oklch(0.95 0.02 140);
    --muted: oklch(0.28 0.08 160);
    --muted-foreground: oklch(0.65 0.06 170);
    --accent: oklch(0.38 0.1 140);
    --accent-foreground: oklch(0.95 0.02 140);
    --destructive: oklch(0.6 0.2 18);
    --border: oklch(0.38 0.1 140 / 30%);
    --input: oklch(0.32 0.08 150 / 20%);
    --ring: oklch(0.45 0.1 125);
}

/* Red Crimson */
.red-crimson {
    --background: oklch(0.1 0.03 25);
    --foreground: oklch(0.95 0.02 35);
    --card: oklch(0.16 0.05 20);
    --card-foreground: oklch(0.95 0.02 35);
    --popover: oklch(0.16 0.05 20);
    --popover-foreground: oklch(0.95 0.02 35);
    --primary: oklch(0.65 0.18 15);
    --primary-foreground: oklch(0.1 0.02 25);
    --secondary: oklch(0.25 0.1 30);
    --secondary-foreground: oklch(0.95 0.02 35);
    --muted: oklch(0.25 0.1 30);
    --muted-foreground: oklch(0.7 0.08 40);
    --accent: oklch(0.35 0.15 45);
    --accent-foreground: oklch(0.95 0.02 35);
    --destructive: oklch(0.6 0.25 8);
    --border: oklch(0.35 0.15 45 / 30%);
    --input: oklch(0.3 0.12 35 / 20%);
    --ring: oklch(0.55 0.15 20);
}

/* Orange Sunset */
.orange-sunset {
    --background: oklch(0.1 0.04 35);
    --foreground: oklch(0.95 0.02 45);
    --card: oklch(0.16 0.06 30);
    --card-foreground: oklch(0.95 0.02 45);
    --popover: oklch(0.16 0.06 30);
    --popover-foreground: oklch(0.95 0.02 45);
    --primary: oklch(0.7 0.15 25);
    --primary-foreground: oklch(0.1 0.02 35);
    --secondary: oklch(0.28 0.1 50);
    --secondary-foreground: oklch(0.95 0.02 45);
    --muted: oklch(0.28 0.1 50);
    --muted-foreground: oklch(0.7 0.08 55);
    --accent: oklch(0.4 0.12 60);
    --accent-foreground: oklch(0.95 0.02 45);
    --destructive: oklch(0.6 0.2 15);
    --border: oklch(0.4 0.12 60 / 30%);
    --input: oklch(0.35 0.1 50 / 20%);
    --ring: oklch(0.6 0.12 30);
}

/* Pink Rose */
.pink-rose {
    --background: oklch(0.12 0.03 345);
    --foreground: oklch(0.95 0.02 5);
    --card: oklch(0.18 0.05 340);
    --card-foreground: oklch(0.95 0.02 5);
    --popover: oklch(0.18 0.05 340);
    --popover-foreground: oklch(0.95 0.02 5);
    --primary: oklch(0.6 0.12 330);
    --primary-foreground: oklch(0.12 0.02 345);
    --secondary: oklch(0.3 0.08 350);
    --secondary-foreground: oklch(0.95 0.02 5);
    --muted: oklch(0.3 0.08 350);
    --muted-foreground: oklch(0.7 0.06 10);
    --accent: oklch(0.42 0.1 15);
    --accent-foreground: oklch(0.95 0.02 5);
    --destructive: oklch(0.6 0.2 25);
    --border: oklch(0.42 0.1 15 / 30%);
    --input: oklch(0.35 0.08 5 / 20%);
    --ring: oklch(0.5 0.1 340);
}

/* Teal Ocean */
.teal-ocean {
    --background: oklch(0.08 0.05 200);
    --foreground: oklch(0.95 0.02 220);
    --card: oklch(0.14 0.08 190);
    --card-foreground: oklch(0.95 0.02 220);
    --popover: oklch(0.14 0.08 190);
    --popover-foreground: oklch(0.95 0.02 220);
    --primary: oklch(0.55 0.15 180);
    --primary-foreground: oklch(0.08 0.02 200);
    --secondary: oklch(0.28 0.12 210);
    --secondary-foreground: oklch(0.95 0.02 220);
    --muted: oklch(0.28 0.12 210);
    --muted-foreground: oklch(0.65 0.1 225);
    --accent: oklch(0.4 0.15 230);
    --accent-foreground: oklch(0.95 0.02 220);
    --destructive: oklch(0.6 0.2 18);
    --border: oklch(0.4 0.15 230 / 30%);
    --input: oklch(0.32 0.12 220 / 20%);
    --ring: oklch(0.45 0.12 185);
}

/* Indigo Dream */
.indigo-dream {
    --background: oklch(0.1 0.06 260);
    --foreground: oklch(0.95 0.02 280);
    --card: oklch(0.16 0.09 250);
    --card-foreground: oklch(0.95 0.02 280);
    --popover: oklch(0.16 0.09 250);
    --popover-foreground: oklch(0.95 0.02 280);
    --primary: oklch(0.6 0.18 240);
    --primary-foreground: oklch(0.1 0.02 260);
    --secondary: oklch(0.3 0.12 270);
    --secondary-foreground: oklch(0.95 0.02 280);
    --muted: oklch(0.3 0.12 270);
    --muted-foreground: oklch(0.7 0.1 290);
    --accent: oklch(0.45 0.15 300);
    --accent-foreground: oklch(0.95 0.02 280);
    --destructive: oklch(0.6 0.2 22);
    --border: oklch(0.45 0.15 300 / 30%);
    --input: oklch(0.38 0.12 285 / 20%);
    --ring: oklch(0.5 0.15 250);
}

/* Emerald Forest */
.emerald-forest {
    --background: oklch(0.08 0.04 140);
    --foreground: oklch(0.95 0.02 160);
    --card: oklch(0.14 0.06 135);
    --card-foreground: oklch(0.95 0.02 160);
    --popover: oklch(0.14 0.06 135);
    --popover-foreground: oklch(0.95 0.02 160);
    --primary: oklch(0.5 0.15 125);
    --primary-foreground: oklch(0.08 0.02 140);
    --secondary: oklch(0.28 0.1 170);
    --secondary-foreground: oklch(0.95 0.02 160);
    --muted: oklch(0.28 0.1 170);
    --muted-foreground: oklch(0.65 0.08 175);
    --accent: oklch(0.38 0.12 180);
    --accent-foreground: oklch(0.95 0.02 160);
    --destructive: oklch(0.6 0.2 16);
    --border: oklch(0.38 0.12 180 / 30%);
    --input: oklch(0.32 0.1 165 / 20%);
    --ring: oklch(0.42 0.12 130);
}

/* Amber Gold */
.amber-gold {
    --background: oklch(0.1 0.03 50);
    --foreground: oklch(0.95 0.02 60);
    --card: oklch(0.16 0.05 45);
    --card-foreground: oklch(0.95 0.02 60);
    --popover: oklch(0.16 0.05 45);
    --popover-foreground: oklch(0.95 0.02 60);
    --primary: oklch(0.7 0.12 40);
    --primary-foreground: oklch(0.1 0.02 50);
    --secondary: oklch(0.3 0.08 65);
    --secondary-foreground: oklch(0.95 0.02 60);
    --muted: oklch(0.3 0.08 65);
    --muted-foreground: oklch(0.7 0.06 70);
    --accent: oklch(0.45 0.1 75);
    --accent-foreground: oklch(0.95 0.02 60);
    --destructive: oklch(0.6 0.2 12);
    --border: oklch(0.45 0.1 75 / 30%);
    --input: oklch(0.38 0.08 60 / 20%);
    --ring: oklch(0.65 0.1 45);
}

/* Violet Magic */
.violet-magic {
    --background: oklch(0.1 0.02 280);
    --foreground: oklch(0.95 0.02 300);
    --card: oklch(0.16 0.03 275);
    --card-foreground: oklch(0.95 0.02 300);
    --popover: oklch(0.16 0.03 275);
    --popover-foreground: oklch(0.95 0.02 300);
    --primary: oklch(0.65 0.2 270);
    --primary-foreground: oklch(0.1 0.02 280);
    --secondary: oklch(0.3 0.1 310);
    --secondary-foreground: oklch(0.95 0.02 300);
    --muted: oklch(0.3 0.1 310);
    --muted-foreground: oklch(0.7 0.08 320);
    --accent: oklch(0.5 0.15 330);
    --accent-foreground: oklch(0.95 0.02 300);
    --destructive: oklch(0.6 0.2 20);
    --border: oklch(0.5 0.15 330 / 30%);
    --input: oklch(0.4 0.12 315 / 20%);
    --ring: oklch(0.55 0.18 280);
}

/* Cyan Electric */
.cyan-electric {
    --background: oklch(0.08 0.05 210);
    --foreground: oklch(0.95 0.02 220);
    --card: oklch(0.14 0.08 200);
    --card-foreground: oklch(0.95 0.02 220);
    --popover: oklch(0.14 0.08 200);
    --popover-foreground: oklch(0.95 0.02 220);
    --primary: oklch(0.5 0.2 190);
    --primary-foreground: oklch(0.08 0.02 210);
    --secondary: oklch(0.28 0.15 230);
    --secondary-foreground: oklch(0.95 0.02 220);
    --muted: oklch(0.28 0.15 230);
    --muted-foreground: oklch(0.65 0.12 240);
    --accent: oklch(0.4 0.18 250);
    --accent-foreground: oklch(0.95 0.02 220);
    --destructive: oklch(0.6 0.2 15);
    --border: oklch(0.4 0.18 250 / 30%);
    --input: oklch(0.35 0.15 235 / 20%);
    --ring: oklch(0.42 0.16 195);
}

/* Rose Gold */
.rose-gold {
    --background: oklch(0.12 0.04 15);
    --foreground: oklch(0.95 0.02 25);
    --card: oklch(0.18 0.06 12);
    --card-foreground: oklch(0.95 0.02 25);
    --popover: oklch(0.18 0.06 12);
    --popover-foreground: oklch(0.95 0.02 25);
    --primary: oklch(0.65 0.15 8);
    --primary-foreground: oklch(0.12 0.02 15);
    --secondary: oklch(0.3 0.1 30);
    --secondary-foreground: oklch(0.95 0.02 25);
    --muted: oklch(0.3 0.1 30);
    --muted-foreground: oklch(0.7 0.08 35);
    --accent: oklch(0.45 0.12 40);
    --accent-foreground: oklch(0.95 0.02 25);
    --destructive: oklch(0.6 0.2 10);
    --border: oklch(0.45 0.12 40 / 30%);
    --input: oklch(0.38 0.1 30 / 20%);
    --ring: oklch(0.55 0.12 15);
}

/* Lime Bright */
.lime-bright {
    --background: oklch(0.1 0.04 110);
    --foreground: oklch(0.95 0.02 120);
    --card: oklch(0.16 0.06 105);
    --card-foreground: oklch(0.95 0.02 120);
    --popover: oklch(0.16 0.06 105);
    --popover-foreground: oklch(0.95 0.02 120);
    --primary: oklch(0.6 0.18 95);
    --primary-foreground: oklch(0.1 0.02 110);
    --secondary: oklch(0.32 0.12 130);
    --secondary-foreground: oklch(0.95 0.02 120);
    --muted: oklch(0.32 0.12 130);
    --muted-foreground: oklch(0.68 0.1 140);
    --accent: oklch(0.5 0.15 145);
    --accent-foreground: oklch(0.95 0.02 120);
    --destructive: oklch(0.6 0.2 8);
    --border: oklch(0.5 0.15 145 / 30%);
    --input: oklch(0.42 0.12 135 / 20%);
    --ring: oklch(0.52 0.16 100);
}

/* Slate Modern */
.slate-modern {
    --background: oklch(0.12 0.02 250);
    --foreground: oklch(0.95 0.02 260);
    --card: oklch(0.18 0.03 245);
    --card-foreground: oklch(0.95 0.02 260);
    --popover: oklch(0.18 0.03 245);
    --popover-foreground: oklch(0.95 0.02 260);
    --primary: oklch(0.55 0.08 240);
    --primary-foreground: oklch(0.12 0.02 250);
    --secondary: oklch(0.28 0.05 270);
    --secondary-foreground: oklch(0.95 0.02 260);
    --muted: oklch(0.28 0.05 270);
    --muted-foreground: oklch(0.68 0.04 280);
    --accent: oklch(0.35 0.06 290);
    --accent-foreground: oklch(0.95 0.02 260);
    --destructive: oklch(0.6 0.2 18);
    --border: oklch(0.35 0.06 290 / 30%);
    --input: oklch(0.3 0.04 275 / 20%);
    --ring: oklch(0.45 0.07 245);
}

/* Zinc Rain */
.zinc-rain {
    --background: oklch(0.1 0.01 230);
    --foreground: oklch(0.95 0.01 240);
    --card: oklch(0.16 0.02 225);
    --card-foreground: oklch(0.95 0.01 240);
    --popover: oklch(0.16 0.02 225);
    --popover-foreground: oklch(0.95 0.01 240);
    --primary: oklch(0.5 0.05 220);
    --primary-foreground: oklch(0.1 0.01 230);
    --secondary: oklch(0.25 0.03 250);
    --secondary-foreground: oklch(0.95 0.01 240);
    --muted: oklch(0.25 0.03 250);
    --muted-foreground: oklch(0.65 0.02 260);
    --accent: oklch(0.3 0.04 270);
    --accent-foreground: oklch(0.95 0.01 240);
    --destructive: oklch(0.6 0.2 20);
    --border: oklch(0.3 0.04 270 / 30%);
    --input: oklch(0.28 0.02 255 / 20%);
    --ring: oklch(0.4 0.03 225);
}

/* Stone Earth */
.stone-earth {
    --background: oklch(0.12 0.02 70);
    --foreground: oklch(0.95 0.02 80);
    --card: oklch(0.18 0.03 65);
    --card-foreground: oklch(0.95 0.02 80);
    --popover: oklch(0.18 0.03 65);
    --popover-foreground: oklch(0.95 0.02 80);
    --primary: oklch(0.5 0.08 60);
    --primary-foreground: oklch(0.12 0.02 70);
    --secondary: oklch(0.28 0.05 90);
    --secondary-foreground: oklch(0.95 0.02 80);
    --muted: oklch(0.28 0.05 90);
    --muted-foreground: oklch(0.68 0.04 95);
    --accent: oklch(0.35 0.06 100);
    --accent-foreground: oklch(0.95 0.02 80);
    --destructive: oklch(0.6 0.2 22);
    --border: oklch(0.35 0.06 100 / 30%);
    --input: oklch(0.3 0.04 85 / 20%);
    --ring: oklch(0.42 0.07 65);
}

/* Neutral Warm */
.neutral-warm {
    --background: oklch(0.14 0.02 60);
    --foreground: oklch(0.92 0.02 70);
    --card: oklch(0.2 0.03 55);
    --card-foreground: oklch(0.92 0.02 70);
    --popover: oklch(0.2 0.03 55);
    --popover-foreground: oklch(0.92 0.02 70);
    --primary: oklch(0.48 0.06 50);
    --primary-foreground: oklch(0.14 0.02 60);
    --secondary: oklch(0.3 0.04 80);
    --secondary-foreground: oklch(0.92 0.02 70);
    --muted: oklch(0.3 0.04 80);
    --muted-foreground: oklch(0.65 0.03 85);
    --accent: oklch(0.38 0.05 90);
    --accent-foreground: oklch(0.92 0.02 70);
    --destructive: oklch(0.58 0.18 18);
    --border: oklch(0.38 0.05 90 / 30%);
    --input: oklch(0.32 0.04 75 / 20%);
    --ring: oklch(0.4 0.05 55);
}

/* Mauve Delicate */
.mauve-delicate {
    --background: oklch(0.13 0.03 320);
    --foreground: oklch(0.93 0.02 330);
    --card: oklch(0.19 0.04 315);
    --card-foreground: oklch(0.93 0.02 330);
    --popover: oklch(0.19 0.04 315);
    --popover-foreground: oklch(0.93 0.02 330);
    --primary: oklch(0.52 0.1 310);
    --primary-foreground: oklch(0.13 0.03 320);
    --secondary: oklch(0.32 0.06 335);
    --secondary-foreground: oklch(0.93 0.02 330);
    --muted: oklch(0.32 0.06 335);
    --muted-foreground: oklch(0.68 0.05 340);
    --accent: oklch(0.42 0.08 345);
    --accent-foreground: oklch(0.93 0.02 330);
    --destructive: oklch(0.58 0.2 20);
    --border: oklch(0.42 0.08 345 / 30%);
    --input: oklch(0.34 0.06 330 / 20%);
    --ring: oklch(0.44 0.08 320);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--background);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #a800d8, #9333ea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'October Crow', serif;
    margin: 0;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
    background: var(--accent);
}

.nav-link.active {
    background: #8b5cf6;
    color: white;
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--accent);
    color: var(--accent-foreground);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    background: var(--accent);
    opacity: 0.8;
}

.theme-preview {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 18rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 60;
    max-height: 30rem;
    overflow-y: auto;
    display: none;
}

.theme-dropdown.show {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.theme-option:hover {
    background: var(--accent);
}

.theme-colors {
    display: flex;
    gap: 0.25rem;
}

.color-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 16rem;
    background: var(--card);
    background: rgba(var(--card), 0.8);
    backdrop-filter: blur(8px);
    border-right: 1px solid var(--border);
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.sidebar-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--muted);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.mode-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--muted-foreground);
}

.mode-btn.active {
    background: #8b5cf6;
    color: white;
}

.mode-btn:hover:not(.active) {
    color: var(--foreground);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}

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

.filter-group {
    margin-bottom: 0.5rem;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e6b800;
    margin-bottom: 0.25rem;
}

.filter-select {
    width: 100%;
    padding: 0.375rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: var(--foreground);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.evidence-btn {
    padding: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--muted);
    color: var(--foreground);
    min-height: 3rem;
    position: relative;
    overflow: hidden;
}

.evidence-btn:hover {
    border-color: var(--ring);
    background: var(--accent);
}

.evidence-btn.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.evidence-btn.selected::after {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-left: auto;
}

.evidence-btn.excluded {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.evidence-btn.excluded::after {
    content: '✕';
    color: #ef4444;
    font-weight: bold;
    margin-left: auto;
}

.evidence-btn.max-reached {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    border-style: dashed;
}

/* Speed preview styling */
.ghost-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.speed-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speed-text {
    flex: 1;
}

.speed-preview-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 0.125rem 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--foreground);
}

.speed-preview-btn:hover {
    background: var(--accent);
    border-color: var(--ring);
}

.speed-preview-btn.playing {
    background: #10b981;
    border-color: #10b981;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Ghost evidence icon styling */
.ghost-evidences .evidence-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--muted);
    color: var(--muted-foreground);
}

/* Theme-aware icon coloring */
.ghost-evidences .evidence-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    filter: invert(var(--icon-invert, 0));
}

/* Dark theme icons */
.default-dark,
.purple-aurora,
.blue-sunset,
.green-forest,
.red-crimson,
.orange-sunset,
.pink-rose,
.teal-ocean,
.indigo-dream,
.emerald-forest,
.amber-gold,
.violet-magic,
.cyan-electric,
.rose-gold,
.lime-bright,
.slate-modern,
.zinc-rain,
.stone-earth,
.neutral-warm,
.mauve-delicate {
    --icon-invert: 1;
}

/* Light theme icons */
.default-light {
    --icon-invert: 0;
}

.evidence-limit {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
}

.speed-grid,
.hunt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}

.hunt-grid {
    grid-template-columns: repeat(2, 1fr);
}

.speed-btn,
.hunt-btn {
    padding: 0.375rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--muted);
    color: var(--foreground);
}

.speed-btn:hover,
.hunt-btn:hover {
    background: var(--accent);
}

.speed-btn.active,
.hunt-btn.active {
    background: #8b5cf6;
    color: white;
}

.hunt-btn:nth-child(5) {
    grid-column: span 2;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.action-btn {
    padding: 0.375rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.clear {
    background: #ef4444;
    color: white;
}

.action-btn.clear:hover {
    background: #dc2626;
}

.action-btn.reset {
    background: #10b981;
    color: white;
}

.action-btn.reset:hover {
    background: #059669;
}

.action-btn:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
}

/* Tools */
.timers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.timer-btn {
    padding: 0.375rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--muted);
    color: var(--foreground);
}

.timer-btn:hover {
    background: var(--accent);
}

.timer-btn.active.sanity {
    background: #10b981;
    color: white;
}

.timer-btn.active.hunt {
    background: #ef4444;
    color: white;
}

.timer-btn.active.smudge {
    background: #f59e0b;
    color: white;
}

.speed-info {
    font-size: 0.75rem;
}

.speed-current {
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.speed-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.bpm-container {
    font-size: 0.75rem;
}

.bpm-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.bpm-input-group span {
    color: var(--muted-foreground);
}

.bpm-input-group input {
    flex: 1;
    padding: 0.25rem 0.5rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--foreground);
}

.bpm-result {
    color: var(--muted-foreground);
}

/* Sidebar Stats */
.sidebar-stats {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    text-align: center;
    font-size: 0.75rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--muted-foreground);
}

.stat-value {
    font-weight: 700;
    color: #10b981;
}

/* Main Content */
.main-content {
    margin-left: 16rem;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.stats-header {
    position: sticky;
    top: 80px;
    z-index: 20;
    background: var(--background);
    background: rgba(var(--background), 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin: 0;
}

.stats-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.selected-evidence {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.evidence-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.ghosts-container {
    padding: 1.5rem;
    padding-bottom: 6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ghost-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ghost-card:hover {
    border-color: var(--ring);
.ghost-card.excluded {
    opacity: 0.6;
    background: rgba(var(--muted), 0.3);
    border-color: var(--muted);
}

.ghost-card.excluded .action-exclude {
    background: #6b7280;
}

.ghost-card.excluded .action-exclude::after {
    content: '↶';
}

.ghost-card.fixed-size {
    width: 510px;
    height: 125px;
    overflow: hidden;
}

/* Evidence Icon Colors */
.evidence-icon.tempgun {
    filter: hue-rotate(200deg) brightness(1.5);
}

.evidence-icon.dots {
    filter: hue-rotate(120deg) brightness(1.2);
}

.evidence-icon.orbs {
    filter: brightness(1.8);
}

.evidence-icon.spiritbox {
    filter: hue-rotate(60deg) brightness(1.3);
}

.evidence-icon.book {
    filter: hue-rotate(240deg) brightness(1.2);
}

.evidence-icon.uv {
    filter: hue-rotate(300deg) brightness(1.4);
}

.evidence-icon.emf {
    filter: hue-rotate(0deg) brightness(1.5);
}
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
.ghost-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.ghost-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ghost-right {
    background: var(--muted);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
}

.ghost-details-scroll {
    height: 100%;
    overflow-y: auto;
    max-height: 300px;
}

.detail-section {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;
    position: relative;
}

.detail-section li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.detail-section p {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.meta-grid div {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .ghost-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ghost-right {
        max-height: 200px;
    }
    
    .ghost-details-scroll {
        max-height: 200px;
    }
}
}

.ghost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ghost-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--card-foreground);
}

.ghost-difficulty {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--muted);
    color: var(--muted-foreground);
}

.ghost-evidences {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.evidence-tag {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--muted);
    color: var(--muted-foreground);
}

.ghost-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.ghost-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.action-confirm,
.action-exclude {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-confirm {
    background: #10b981;
    color: white;
}

.action-confirm:hover {
    background: #059669;
}

.action-exclude {
    background: #ef4444;
    color: white;
}

.action-exclude:hover {
    background: #dc2626;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    max-width: 32rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-left,
    .nav-right {
        gap: 0.125rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .theme-dropdown {
        width: 16rem;
        right: -8rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-left {
    text-align: left;
}

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

.text-right {
    text-align: right;
}

/* Additional Styles for Evidence Icons */
.evidence-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.evidence-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}