@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 224 71% 4%;
    --card: 0 0% 100%;
    --card-foreground: 224 71% 4%;
    --popover: 0 0% 100%;
    --popover-foreground: 224 71% 4%;
    --primary: 262 83% 58%;
    --primary-foreground: 210 20% 98%;
    --secondary: 220 14% 96%;
    --secondary-foreground: 220 9% 46%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;
    --accent: 220 14% 96%;
    --accent-foreground: 220 9% 46%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 20% 98%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 262 83% 58%;
    --radius: 0.75rem;

    /* Status Colors */
    --status-planned: 220 13% 46%;
    --status-active: 217 91% 60%;
    --status-completed: 142 76% 36%;
    --status-todo: 220 9% 46%;
    --status-inprogress: 217 91% 60%;
    --status-review: 38 92% 50%;
    --status-done: 142 76% 36%;

    /* Priority Colors */
    --priority-low: 142 76% 36%;
    --priority-medium: 38 92% 50%;
    --priority-high: 0 84% 60%;
  }

  .dark {
    --background: 224 71% 4%;
    --foreground: 210 20% 98%;
    --card: 224 71% 4%;
    --card-foreground: 210 20% 98%;
    --popover: 224 71% 4%;
    --popover-foreground: 210 20% 98%;
    --primary: 263 70% 50%;
    --primary-foreground: 210 20% 98%;
    --secondary: 215 28% 17%;
    --secondary-foreground: 210 20% 98%;
    --muted: 215 28% 17%;
    --muted-foreground: 217 10% 64%;
    --accent: 215 28% 17%;
    --accent-foreground: 210 20% 98%;
    --destructive: 0 62% 30%;
    --destructive-foreground: 210 20% 98%;
    --border: 215 28% 17%;
    --input: 215 28% 17%;
    --ring: 263 70% 50%;

    /* Status Colors - Dark Mode */
    --status-planned: 217 10% 64%;
    --status-active: 217 91% 60%;
    --status-completed: 142 69% 58%;
    --status-todo: 217 10% 64%;
    --status-inprogress: 217 91% 60%;
    --status-review: 38 92% 50%;
    --status-done: 142 69% 58%;

    /* Priority Colors - Dark Mode */
    --priority-low: 142 69% 58%;
    --priority-medium: 38 92% 50%;
    --priority-high: 0 84% 60%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
    font-feature-settings: "rlig" 1, "calt" 1;
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }

  /* Custom scrollbar */
  .custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .custom-scrollbar::-webkit-scrollbar-track {
    @apply bg-transparent;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb {
    @apply bg-border rounded-full;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    @apply bg-muted-foreground/30;
  }

  /* Glass effect */
  .glass {
    @apply backdrop-blur-md bg-background/80;
  }

  /* Gradient text */
  .gradient-text {
    @apply bg-gradient-to-r from-primary via-purple-500 to-pink-500 bg-clip-text text-transparent;
  }

  /* Card hover effect */
  .card-hover {
    @apply transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5;
  }

  /* Kanban column styling */
  .kanban-column {
    @apply bg-muted/50 rounded-xl p-4 min-h-[500px];
  }

  /* Task card styling */
  .task-card {
    @apply bg-card rounded-lg p-4 shadow-sm border border-border/50 
           transition-all duration-200 hover:shadow-md hover:border-primary/20;
  }

  /* Animated gradient background */
  .animated-gradient {
    background: linear-gradient(
      -45deg,
      hsl(var(--primary)),
      hsl(263 70% 60%),
      hsl(280 70% 50%),
      hsl(var(--primary))
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
  }

  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  /* Shimmer loading effect */
  .shimmer {
    @apply relative overflow-hidden;
  }

  .shimmer::after {
    @apply absolute inset-0;
    content: "";
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    animation: shimmer 2s infinite;
  }
}

