@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: 145 85% 15%;

    --card: 0 0% 100%;
    --card-foreground: 145 85% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 145 85% 15%;

    --primary: 145 85% 25%;
    --primary-foreground: 0 0% 98%;

    --secondary: 43 74% 66%;
    --secondary-foreground: 145 85% 15%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 43 74% 50%;
    --accent-foreground: 0 0% 98%;

    --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: 145 85% 25%;

    --radius: 0.75rem;

    /* Academic theme colors */
    --academic-green: 145 85% 25%;
    --academic-green-light: 145 60% 45%;
    --academic-gold: 43 74% 50%;
    --academic-gold-light: 43 74% 66%;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--academic-green)), hsl(var(--academic-green-light)));
    --gradient-secondary: linear-gradient(135deg, hsl(var(--academic-gold)), hsl(var(--academic-gold-light)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--academic-green)), hsl(var(--academic-green-light)), hsl(var(--academic-gold-light)));
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--academic-green) / 0.3);
    --shadow-glow: 0 0 40px hsl(var(--academic-gold) / 0.4);
    
    /* Animations */
    --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: 145 85% 4%;
    --foreground: 0 0% 98%;

    --card: 145 50% 8%;
    --card-foreground: 0 0% 98%;

    --popover: 145 50% 8%;
    --popover-foreground: 0 0% 98%;

    --primary: 145 60% 45%;
    --primary-foreground: 145 85% 4%;

    --secondary: 43 50% 30%;
    --secondary-foreground: 0 0% 98%;

    --muted: 145 50% 15%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 43 74% 50%;
    --accent-foreground: 145 85% 4%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 145 50% 15%;
    --input: 145 50% 15%;
    --ring: 145 60% 45%;
    
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

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

  body {
    @apply bg-background text-foreground;
  }
}