@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
  --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-ring-offset-background: var(--background);
  --color-surface: var(--surface);
  --color-glow: var(--glow);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

:root {
  --radius: 0.875rem;
  --background: #f4f7fd;
  --foreground: #0a1526;
  --surface: #e7eefb;
  --card: #ffffff;
  --card-foreground: #0a1526;
  --popover: #ffffff;
  --popover-foreground: #0a1526;
  --primary: #0a57c2;
  --primary-foreground: #ffffff;
  --secondary: #e7eefb;
  --secondary-foreground: #0a1526;
  --muted: #eef3fc;
  --muted-foreground: #4a5468;
  --accent: #004bba;
  --accent-foreground: #ffffff;
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: #ffffff;
  --border: rgba(9, 62, 150, 0.18);
  --input: rgba(9, 62, 150, 0.22);
  --ring: #0a57c2;
  --glow: rgba(10, 87, 194, 0.28);
}

.dark {
  --background: #07090d;
  --foreground: #ffffff;
  --surface: #10131a;
  --card: #161b24;
  --card-foreground: #ffffff;
  --popover: #10131a;
  --popover-foreground: #ffffff;
  --primary: #1273e6;
  --primary-foreground: #ffffff;
  --secondary: #0962d1;
  --secondary-foreground: #07090d;
  --muted: #10131a;
  --muted-foreground: #8a95a7;
  --accent: #4da3ff;
  --accent-foreground: #07090d;
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: #ffffff;
  --border: rgba(77, 163, 255, 0.14);
  --input: rgba(77, 163, 255, 0.2);
  --ring: #4da3ff;
  --glow: rgba(77, 163, 255, 0.45);
}

@layer base {
  * { border-color: var(--color-border); }
  html { scroll-behavior: smooth; }
  body {
    background-color: var(--color-background);
    background-image:
      radial-gradient(ellipse 90% 60% at 10% -10%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%),
      radial-gradient(ellipse 80% 50% at 100% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
      radial-gradient(ellipse 100% 60% at 50% 110%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 60%);
    background-attachment: fixed;
    color: var(--color-foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  .dark body { background-image: none; }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
  }
  ::selection {
    background: var(--primary);
    color: var(--primary-foreground);
  }
}

@utility glass {
  background: color-mix(in oklab, var(--card) 55%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
}

@utility glass-strong {
  background: color-mix(in oklab, var(--card) 82%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
}

:root:not(.dark) .glass,
:root:not(.dark) [class~="glass"] {
  background: #ffffff;
  border-color: rgba(9, 62, 150, 0.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 20px 40px -24px rgba(9, 62, 150, 0.35),
    0 6px 16px -8px rgba(9, 62, 150, 0.12),
    0 1px 2px rgba(15, 30, 45, 0.04);
}
:root:not(.dark) .glass-strong,
:root:not(.dark) [class~="glass-strong"] {
  background: #ffffff;
  border-color: rgba(9, 62, 150, 0.16);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 30px 60px -24px rgba(9, 62, 150, 0.4),
    0 10px 24px -10px rgba(9, 62, 150, 0.15);
}

:root:not(.dark) .glow-ring {
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 50px -20px rgba(10, 87, 194, 0.45),
    0 6px 16px -6px rgba(9, 62, 150, 0.15);
}

@utility text-gradient {
  background: linear-gradient(120deg, var(--primary), var(--accent) 60%, #4da3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@utility grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

@utility glow-ring {
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 80px -30px var(--glow),
    inset 0 1px 0 color-mix(in oklab, white 10%, transparent);
}

@utility marquee-track {
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}

@utility floaty {
  animation: floaty 8s ease-in-out infinite;
}

@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-50px) scale(1.15); }
  66%     { transform: translate(-30px,30px) scale(0.9); }
}

@utility blob {
  animation: blob 18s ease-in-out infinite;
  filter: blur(70px);
}

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 var(--glow); }
  50%     { box-shadow: 0 0 40px 8px var(--glow); }
}

@utility pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Hide default native cursor when custom magic cursor is active */
html.custom-cursor-active,
html.custom-cursor-active *,
html.custom-cursor-active a,
html.custom-cursor-active button,
html.custom-cursor-active input,
html.custom-cursor-active textarea,
html.custom-cursor-active select,
html.custom-cursor-active [role="button"] {
  cursor: none !important;
}

/* Hide scrollbars while allowing smooth scrolling */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Custom Modern Theme Styling for Date Inputs */
input[type="date"] {
  color-scheme: dark light;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Prevent Radix UI / Modal scroll-lock from causing header & body layout shift */
body[data-scroll-locked],
html[data-scroll-locked],
body[style*="padding-right"],
html[style*="padding-right"],
header[style*="padding-right"],
header[style*="margin-right"],
[data-radix-scroll-area-viewport] {
  padding-right: 0px !important;
  margin-right: 0px !important;
}

body[data-scroll-locked] {
  overflow: auto !important;
}
