@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');
@custom-variant dark (&:is([data-theme="dark"] *));

:root {
  --background: oklch(0.9730 0.0133 286.1503);
  --foreground: oklch(0.3015 0.0572 282.4176);
  --card: oklch(1.0000 0 0);
  --card-foreground: oklch(0.3015 0.0572 282.4176);
  --popover: oklch(1.0000 0 0);
  --popover-foreground: oklch(0.3015 0.0572 282.4176);
  --primary: oklch(49.832% 0.22071 284.255);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9174 0.0435 292.6901);
  --secondary-foreground: oklch(0.4143 0.1039 288.1742);
  --muted: oklch(0.9580 0.0133 286.1454);
  --muted-foreground: oklch(0.5426 0.0465 284.7435);
  --accent: oklch(0.9221 0.0373 262.1410);
  --accent-foreground: oklch(0.3015 0.0572 282.4176);
  --destructive: oklch(0.6861 0.2061 14.9941);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.9115 0.0216 285.9625);
  --input: oklch(0.9115 0.0216 285.9625);
  --ring: oklch(0.5417 0.1790 288.0332);
  --chart-1: oklch(0.5417 0.1790 288.0332);
  --chart-2: oklch(0.7042 0.1602 288.9880);
  --chart-3: oklch(0.5679 0.2113 276.7065);
  --chart-4: oklch(0.6356 0.1922 281.8054);
  --chart-5: oklch(0.4509 0.1758 279.3838);
  --sidebar: oklch(0.9580 0.0133 286.1454);
  --sidebar-foreground: oklch(0.3015 0.0572 282.4176);
  --sidebar-primary: oklch(0.5417 0.1790 288.0332);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.9221 0.0373 262.1410);
  --sidebar-accent-foreground: oklch(0.3015 0.0572 282.4176);
  --sidebar-border: oklch(0.9115 0.0216 285.9625);
  --sidebar-ring: oklch(0.5417 0.1790 288.0332);
  --font-sans: Inter, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: JetBrains Mono, monospace;
  --radius: 0.5rem;
  --shadow-x: 0px;
  --shadow-y: 4px;
  --shadow-blur: 10px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.12;
  --shadow-color: hsl(240 30% 25%);
  --shadow-2xs: 0px 4px 10px 0px hsl(240 30% 25% / 0.06);
  --shadow-xs: 0px 4px 10px 0px hsl(240 30% 25% / 0.06);
  --shadow-sm: 0px 4px 10px 0px hsl(240 30% 25% / 0.12), 0px 1px 2px -1px hsl(240 30% 25% / 0.12);
  --shadow: 0px 4px 10px 0px hsl(240 30% 25% / 0.12), 0px 1px 2px -1px hsl(240 30% 25% / 0.12);
  --shadow-md: 0px 4px 10px 0px hsl(240 30% 25% / 0.12), 0px 2px 4px -1px hsl(240 30% 25% / 0.12);
  --shadow-lg: 0px 4px 10px 0px hsl(240 30% 25% / 0.12), 0px 4px 6px -1px hsl(240 30% 25% / 0.12);
  --shadow-xl: 0px 4px 10px 0px hsl(240 30% 25% / 0.12), 0px 8px 10px -1px hsl(240 30% 25% / 0.12);
  --shadow-2xl: 0px 4px 10px 0px hsl(240 30% 25% / 0.30);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
}

[data-theme="dark"] {
     --background: oklch(0.1822 0 0);
  --foreground: oklch(0.9288 0.0126 255.5078);
  --card: oklch(0.2046 0 0);
  --card-foreground: oklch(0.9288 0.0126 255.5078);
  --popover: oklch(0.2603 0 0);
  --popover-foreground: oklch(0.7348 0 0);
  --secondary: oklch(0.2603 0 0);
  --secondary-foreground: oklch(0.9851 0 0);
  --muted: oklch(0.2393 0 0);
  --muted-foreground: oklch(0.7122 0 0);
  --destructive: oklch(71.839% 0.1513 28.62);
  --destructive-foreground: oklch(0.9368 0.0045 34.3092);
  --border: oklch(0.2809 0 0);
  --input: oklch(0.2603 0 0);
  --ring: oklch(0.8003 0.1821 151.7110);
  --chart-1: oklch(0.8003 0.1821 151.7110);
  --chart-2: oklch(0.7137 0.1434 254.6240);
  --chart-3: oklch(0.7090 0.1592 293.5412);
  --chart-4: oklch(0.8369 0.1644 84.4286);
  --chart-5: oklch(0.7845 0.1325 181.9120);
  --sidebar: oklch(0.1822 0 0);
  --sidebar-foreground: oklch(0.6301 0 0);
  --sidebar-primary: oklch(0.4365 0.1044 156.7556);
  --sidebar-primary-foreground: oklch(0.9213 0.0135 167.1556);
  --sidebar-border: oklch(0.2809 0 0);
  --sidebar-ring: oklch(0.8003 0.1821 151.7110);
  --font-sans: Outfit, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: monospace;
  --radius: 0.5rem;
  --shadow-x: 0px;
  --shadow-y: 1px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.17;
  --shadow-color: #000000;
  --shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09);
  --shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09);
  --shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17);
  --shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17);
  --shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 2px 4px -1px hsl(0 0% 0% / 0.17);
  --shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 4px 6px -1px hsl(0 0% 0% / 0.17);
  --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 8px 10px -1px hsl(0 0% 0% / 0.17);
  --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.43);
  
  /* Primary (Purple) */
  --primary: oklch(64.278% 0.20003 287.973);
  --primary-foreground: oklch(0.1743 0.0227 283.7998);

  /* Accent (Blue) */
  --accent: oklch(60.394% 0.22562 308.702);
  --accent-foreground: oklch(0.98 0 0);
 --sidebar-accent: oklch(0.3354 0.0828 280.9705);
  --sidebar-accent-foreground: oklch(0.9185 0.0257 285.8834);
}
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
  --font-serif: var(--font-serif);

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow: var(--shadow);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* ── Light Theme ── */
:root {
    --c-void: 42 42 74;
    --c-surface: 255 255 255;
    --c-elevated: 255 255 255;
    --c-panel: 240 240 250;
    --c-stroke: 224 224 240;
    --c-stroke-light: 232 232 245;
    --c-ghost: 108 108 138;
    --c-muted: 90 90 118;
    --c-subtle: 74 64 128;
    --c-primary: 42 42 74;
    --c-bright: 110 86 207;
    --c-accent: 110 86 207;
    --c-accent-dim: 137 117 227;
    --c-warning: 217 119 6;
    --c-danger: 255 84 112;

    --scroll-thumb: rgba(42, 42, 74, 0.12);
    --scroll-thumb-hover: rgba(42, 42, 74, 0.22);
    --toggle-bg: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] {
    /* Text */
    --c-void: 238 238 245;

    /* Surfaces */
    --c-surface: 10 10 14;
    --c-elevated: 16 16 22;
    --c-panel: 22 22 30;

    /* Borders */
    --c-stroke: 42 42 54;
    --c-stroke-light: 32 32 42;

    /* Text Hierarchy */
    --c-ghost: 145 145 165;
    --c-muted: 120 120 140;
    --c-subtle: 190 190 210;

    /* Brand */
    --c-primary: 238 238 245;

    /* Purple */
    --c-bright: 155 135 255;
    --c-accent: 155 135 255;
    --c-accent-dim: 185 170 255;

    /* States */
    --c-warning: 245 158 11;
    --c-danger: 239 68 68;

    /* UI */
    --scroll-thumb: rgba(255,255,255,0.10);
    --scroll-thumb-hover: rgba(255,255,255,0.18);

    --toggle-bg: rgba(18,18,24,0.92);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--foreground);
      font-family: "Host Grotesk", sans-serif;
  font-optical-sizing: auto;
}

body {
    font-family: "Host Grotesk", sans-serif;
  font-optical-sizing: auto;
    min-height: 100vh;
    background-color: var(--background);
}



/* Noise texture on fixed pseudo-element for GPU efficiency */
.noise::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 90;
    background-image: url("/static/noise.png");
    mix-blend-mode: screen;
    background-size: cover;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* Selection */
::selection {
    background: rgb(var(--c-accent) / 0.22);
    color: rgb(var(--c-bright));
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    letter-spacing: -0.025em;
}

/* ── Input Focus Ring ── */
.input-focus:focus {
    outline: none;
    border-color: rgb(var(--c-accent));
    box-shadow: 0 0 0 3px rgb(var(--c-accent) / 0.12);
}

/* ── Override browser autofill background ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgb(var(--c-elevated)) inset;
    -webkit-text-fill-color: rgb(var(--c-primary));
    caret-color: rgb(var(--c-primary));
}
.dashboard-shadow{
    box-shadow:
  0px 1px 2px rgba(15, 23, 42, 0.05),
  0px 10px 20px rgba(15, 23, 42, 0.05);
}
/* ── Primary Button ── */
.btn-primary {
    background-color: rgb(var(--c-bright));
    color: rgb(var(--c-surface));
    border-radius: 8px;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(var(--c-bright) / 0.12);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    opacity: 1;
}

/* ── Secondary Button ── */
.btn-secondary {
    background-color: rgb(var(--c-elevated));
    color: rgb(var(--c-primary));
    border: 1px solid rgb(var(--c-stroke));
    border-radius: 8px;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover {
    border-color: rgb(var(--c-ghost));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(var(--c-bright) / 0.06);
}
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* ── Hover Glow ── */
.hover-glow {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-glow:hover {
    background: rgb(var(--c-elevated));
    box-shadow: 0 1px 3px rgb(var(--c-bright) / 0.04);
}

/* ── Pulse Glow for status dots ── */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(var(--c-accent) / 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgb(var(--c-accent) / 0); }
}
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Fade Up ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 0.3s ease-out forwards;
}

/* ── Stagger Children ── */
.stagger-children > * {
    opacity: 0;
    animation: fadeUp 0.35s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.04s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.12s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.16s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.24s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.28s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.32s; }

/* ── Theme Toggle ── */
.theme-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(var(--c-stroke));
    border-radius: 10px;
    background: var(--toggle-bg);
    backdrop-filter: blur(12px);
    color: rgb(var(--c-muted));
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
    border-color: rgb(var(--c-accent));
    color: rgb(var(--c-accent));
    transform: scale(1.05);
}
.theme-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
}
.fade-mask {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );
}

