@import "tailwindcss";

@layer base {
  :root {
    --background: 210 40% 98%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 243 75% 59%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 243 75% 59%;
    --radius: 0.75rem;
  }

  * {
    border-color: hsl(var(--border));
  }

  body {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

.glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

/* Global Light Theme Harmonization Layer across all Dashboard Views */
.bg-\[\#0a0a0f\],
.bg-\[\#07070b\],
.bg-\[\#0d0d12\]\/80,
.bg-\[\#0a0a0f\]\/80 {
  background-color: #f8fafc !important;
}

.bg-white\/\[0\.02\],
.bg-white\/\[0\.03\],
.bg-white\/\[0\.04\],
.bg-slate-900\/80,
.bg-slate-900\/90,
.bg-slate-800\/80,
.bg-slate-900 {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

.bg-slate-950,
.bg-slate-950\/60,
.bg-slate-900\/50,
.bg-slate-900\/60,
.bg-black\/20,
.bg-black\/30,
.bg-white\/5 {
  background-color: #f1f5f9 !important;
}

.from-indigo-950\/60 {
  --tw-gradient-from: #eef2ff !important;
  --tw-gradient-via: #ffffff !important;
  --tw-gradient-to: #f8fafc !important;
  background-image: linear-gradient(to bottom right, #eef2ff, #ffffff, #f5f3ff) !important;
}

.border-white\/5,
.border-white\/10,
.border-white\/15,
.border-slate-700,
.border-slate-700\/50,
.border-slate-700\/60,
.border-slate-800 {
  border-color: #e2e8f0 !important;
}

.divide-white\/5 > :not([hidden]) ~ :not([hidden]),
.divide-white\/10 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

/* High-contrast Light Mode Typography while keeping primary buttons white */
h1.text-white,
h2.text-white,
h3.text-white,
h4.text-white,
p.text-white,
span.text-white,
div.text-white:not([class*="bg-indigo-6"]):not([class*="bg-emerald-6"]):not([class*="bg-rose-6"]):not([class*="bg-blue-6"]):not([class*="from-indigo-"]) {
  color: #0f172a !important;
}

.text-slate-100,
.text-slate-200 {
  color: #1e293b !important;
}

.text-slate-300 {
  color: #334155 !important;
}

.text-slate-400 {
  color: #475569 !important;
}

.text-indigo-300 {
  color: #4338ca !important;
}

.text-indigo-400 {
  color: #4f46e5 !important;
}

.text-emerald-300,
.text-emerald-400 {
  color: #047857 !important;
}

.text-amber-300,
.text-amber-400 {
  color: #b45309 !important;
}

.text-rose-300,
.text-rose-400 {
  color: #be123c !important;
}

input,
select,
textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
}
