@tailwind base;
@tailwind components;
@tailwind utilities;

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 10%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 10%;

    /* Primary Navy Blue #003D82 */
    --primary: 210 100% 25.5%;
    --primary-foreground: 0 0% 100%;
    --primary-light: 210 100% 92%;

    /* Secondary Red #E63946 */
    --secondary: 356 77% 57%;
    --secondary-foreground: 0 0% 100%;

    /* Muted grays */
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;

    /* Accent light blue */
    --accent: 210 60% 95%;
    --accent-foreground: 210 100% 25.5%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;

    --border: 214 20% 90%;
    --input: 214 20% 90%;
    --ring: 210 100% 25.5%;

    --radius: 0.5rem;
    
    /* Custom tokens */
    --gradient-hero: linear-gradient(135deg, hsl(210 100% 25.5%) 0%, hsl(210 100% 35%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(210 60% 98%) 100%);
    --shadow-card: 0 2px 8px -2px hsl(210 100% 25.5% / 0.08);
    --shadow-elevated: 0 8px 24px -4px hsl(210 100% 25.5% / 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-background: 0 0% 98%;

    --sidebar-foreground: 240 5.3% 26.1%;

    --sidebar-primary: 240 5.9% 10%;

    --sidebar-primary-foreground: 0 0% 98%;

    --sidebar-accent: 240 4.8% 95.9%;

    --sidebar-accent-foreground: 240 5.9% 10%;

    --sidebar-border: 220 13% 91%;

    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 210 100% 8%;
    --foreground: 0 0% 98%;

    --card: 210 100% 10%;
    --card-foreground: 0 0% 98%;

    --popover: 210 100% 10%;
    --popover-foreground: 0 0% 98%;

    --primary: 210 100% 92%;
    --primary-foreground: 210 100% 25.5%;

    --secondary: 356 77% 57%;
    --secondary-foreground: 0 0% 100%;

    --muted: 210 50% 15%;
    --muted-foreground: 0 0% 70%;

    --accent: 210 50% 15%;
    --accent-foreground: 210 100% 92%;

    --destructive: 0 62.8% 50%;
    --destructive-foreground: 0 0% 100%;

    --border: 210 50% 20%;
    --input: 210 50% 20%;
    --ring: 210 100% 92%;
  }
}

@layer base {
  * {
    @apply border-border;
    box-sizing: border-box;
  }

  html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }

  body {
    @apply bg-background text-foreground font-sans antialiased;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-bold;
  }
}
