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

/* FinPilot Enterprise Design System
Modern dark theme with professional gradients and enterprise-grade styling
*/

@layer base {
  :root {
    /* Enterprise Dark Theme - Primary Colors */
    --background: 222 22% 8%;
    --foreground: 210 40% 95%;

    --card: 224 25% 12%;
    --card-foreground: 210 40% 95%;

    --popover: 224 25% 12%;
    --popover-foreground: 210 40% 95%;

    /* Brand Colors - Professional Blue/Purple Gradient */
    --primary: 239 84% 67%;
    --primary-foreground: 210 40% 98%;
    --primary-glow: 246 100% 85%;

    --secondary: 217 32% 18%;
    --secondary-foreground: 210 40% 95%;

    --muted: 217 19% 15%;
    --muted-foreground: 215 20% 65%;

    --accent: 246 83% 70%;
    --accent-foreground: 210 40% 98%;

    /* Status Colors */
    --success: 142 76% 36%;
    --success-foreground: 210 40% 98%;
    --warning: 38 92% 50%;
    --warning-foreground: 222 84% 5%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 210 40% 98%;

    /* Interface Elements */
    --border: 217 19% 18%;
    --input: 217 19% 15%;
    --ring: 239 84% 67%;

    /* Design System Variables */
    --radius: 0.75rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    --gradient-secondary: linear-gradient(135deg, hsl(var(--muted)), hsl(var(--card)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 50%, hsl(var(--primary-glow)) 100%);
    
    /* Shadows */
    --shadow-elegant: 0 4px 20px -4px hsl(var(--primary) / 0.2);
    --shadow-card: 0 2px 10px -2px hsl(var(--background) / 0.8);
    --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.3);

    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;

    --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: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

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

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --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 font-sans antialiased;
  }
}

@layer components {
  /* Enterprise Component Styles */
  .gradient-bg {
    background: var(--gradient-primary);
  }
  
  .gradient-hero {
    background: var(--gradient-hero);
  }
  
  .card-glow {
    box-shadow: var(--shadow-elegant);
  }
  
  .transition-smooth {
    transition: var(--transition-smooth);
  }
  
  .transition-fast {
    transition: var(--transition-fast);
  }

  /* Status Badge Styles */
  .status-pending {
    @apply bg-warning/10 text-warning border-warning/20;
  }
  
  .status-approved {
    @apply bg-success/10 text-success border-success/20;
  }
  
  .status-rejected {
    @apply bg-destructive/10 text-destructive border-destructive/20;
  }
  
  .status-paid {
    @apply bg-primary/10 text-primary border-primary/20;
  }
}