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

/* Font Face Declarations */
@font-face {
  font-family: "Forevs Demo";
  src: url("./assets/fonts/primary/forevsdemo-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forevs Demo";
  src: url("./assets/fonts/primary/forevsdemo-mediumitalic.otf")
    format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Forevs Demo";
  src: url("./assets/fonts/primary/forevsdemo-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forevs Demo";
  src: url("./assets/fonts/primary/forevsdemo-bolditalic.otf")
    format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@layer base {
  :root {
    --background: 20 9% 6%;
    --foreground: 38 65% 97%;
    --card: 20 9% 6%;
    --card-foreground: 38 65% 97%;
    --popover: 20 9% 6%;
    --popover-foreground: 38 65% 97%;
    --primary: 42 60% 84%;
    --primary-foreground: 20 9% 6%;
    --secondary: 15 10% 16%;
    --secondary-foreground: 41.6 60% 63%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 38 65% 97%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 38 65% 97%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 15 10% 16%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
    --radius: 0.5rem;

    --sidebar-background: 20 9% 6%;
    --sidebar-foreground: 38 65% 97%;
    --sidebar-primary: 42 60% 84%;
    --sidebar-primary-foreground: 0 0% 9%;
    --sidebar-accent: 42 60% 84%;
    --sidebar-accent-foreground: 15 10% 16%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .light {
    --background: 0 0% 100%;
    --foreground: 15 10% 16%;
    --card: 0 0% 100%;
    --card-foreground: 15 10% 16%;
    --popover: 0 0% 100%;
    --popover-foreground: 15 10% 16%;
    --primary: 42 60% 84%;
    --primary-foreground: 20 9% 6%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 15 10% 16%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 15 10% 16%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 15 10% 16%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;

    --toast-background: 15 10% 13%;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 15 10% 16%;
    --sidebar-primary: 42 60% 84%;
    --sidebar-primary-foreground: 20 9% 6%;
    --sidebar-accent: 0 0% 96.1%;
    --sidebar-accent-foreground: 15 10% 16%;
    --sidebar-border: 0 0% 89.8%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 20 9% 6%;
    --foreground: 38 65% 97%;
    --card: 20 9% 6%;
    --card-foreground: 38 65% 97%;
    --popover: 20 9% 6%;
    --popover-foreground: 38 65% 97%;
    --primary: 42 60% 84%;
    --primary-foreground: 20 9% 6%;
    --secondary: 15 10% 16%;
    --secondary-foreground: 41.6 60% 63%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 38 65% 97%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 38 65% 97%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 15 10% 16%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
    --toast-background: 15 10% 13%;

    --sidebar-background: 20 9% 6%;
    --sidebar-foreground: 38 65% 97%;
    --sidebar-primary: 42 60% 84%;
    --sidebar-primary-foreground: 0 0% 9%;
    --sidebar-accent: 42 60% 84%;
    --sidebar-accent-foreground: 15 10% 16%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border min-h-0 min-w-0;
  }

  body {
    @apply bg-background text-foreground;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }

  * {
    transition:
      background-color 0.3s ease,
      color 0.3s ease,
      border-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .light img[src*=".svg"],
  .light svg {
    filter: invert(0.2);
  }

  .light img[src*="inverted"],
  .light svg.inverted {
    filter: invert(0.8);
  }
}
