@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;

    --card: 222 47% 9%;
    --card-foreground: 210 40% 98%;

    --popover: 222 47% 9%;
    --popover-foreground: 210 40% 98%;

    --primary: 24 95% 53%;
    --primary-foreground: 0 0% 100%;

    --secondary: 222 47% 14%;
    --secondary-foreground: 210 40% 90%;

    --muted: 222 30% 16%;
    --muted-foreground: 215 20% 55%;

    --accent: 24 95% 53%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;

    --border: 222 30% 18%;
    --input: 222 30% 18%;
    --ring: 24 95% 53%;

    --radius: 0.75rem;

    --nav-bg: 222 47% 5%;
    --hero-overlay: 222 47% 6%;
    --stat-color: 24 95% 53%;

    --course-surface: 0 0% 98%;
    --course-surface-foreground: 222 47% 11%;
    --course-surface-muted: 215 20% 45%;
    --course-card: 0 0% 100%;
    --course-card-border: 220 13% 91%;
    --course-cert-bg: 222 47% 11%;
    --course-cert-foreground: 210 40% 98%;

    --sidebar-background: 222 47% 8%;
    --sidebar-foreground: 210 40% 90%;
    --sidebar-primary: 24 95% 53%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 222 30% 16%;
    --sidebar-accent-foreground: 210 40% 90%;
    --sidebar-border: 222 30% 18%;
    --sidebar-ring: 24 95% 53%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-sans;
    font-family: 'Inter', sans-serif;
  }
}

html.admin-light,
.admin-light {
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;

  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;

  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 20% 93%;
  --secondary-foreground: 222 47% 20%;

  --muted: 210 20% 93%;
  --muted-foreground: 215 16% 45%;

  --accent: 24 95% 53%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 214 20% 86%;
  --input: 214 20% 86%;
  --ring: 24 95% 53%;

  --nav-bg: 0 0% 100%;

  --sidebar-background: 0 0% 100%;
  --sidebar-foreground: 222 47% 20%;
  --sidebar-primary: 24 95% 53%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 210 20% 94%;
  --sidebar-accent-foreground: 222 47% 20%;
  --sidebar-border: 214 20% 88%;
  --sidebar-ring: 24 95% 53%;
}

.tenant-light {
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;

  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;

  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 20% 93%;
  --secondary-foreground: 222 47% 20%;

  --muted: 210 20% 93%;
  --muted-foreground: 215 16% 35%;

  --accent: 24 95% 53%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 214 20% 86%;
  --input: 214 20% 86%;
  --ring: 24 95% 53%;

  color: hsl(222, 47%, 11%);
}

.tenant-light * {
  color: inherit;
}

.tenant-light label,
.tenant-light [class*="Label"] {
  color: hsl(222, 47%, 11%);
}

.tenant-light p,
.tenant-light h1,
.tenant-light h2,
.tenant-light h3,
.tenant-light span:not([class*="text-primary"]):not([class*="text-muted"]) {
  color: hsl(222, 47%, 11%);
}

@layer utilities {
  .text-gradient-orange {
    @apply bg-gradient-to-r from-orange-400 to-orange-600 bg-clip-text text-transparent;
  }
}
