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

@layer base {
  :root {
    --background: 0 0% 100%; /* Keep white for light mode */
    --foreground: 0 0% 10%; /* Dark text */
    --muted: 0 0% 94%; /* Light gray for muted elements */
    --muted-foreground: 0 0% 40%; /* Slightly darker gray */
    --popover: 0 0% 98%;
    --popover-foreground: 0 0% 10%;
    --card: 0 0% 96%;
    --card-foreground: 0 0% 20%;
    --border: 0 0% 90%; /* Subtle gray border */
    --input: 0 0% 92%;
    --primary: 255 90% 60%; /* Vibrant red for primary elements */
    --primary-foreground: 0 0% 100%; /* White text on primary */
    --secondary: 240 5% 45%; /* Dark muted blue */
    --secondary-foreground: 0 0% 98%;
    --accent: 277 52% 53%; /* Purple accent matching #5D2CA8 */
    --accent-foreground: 0 0% 100%;
    --destructive: 4 90% 58%; /* Slightly muted red */
    --destructive-foreground: 0 0% 100%;
    --ring: 277 52% 53%; /* Match accent purple */
    --radius: 0.5rem;
    --sidebar-background: 0 0% 98%; /* Light gray for sidebar */
    --sidebar-foreground: 0 0% 20%; /* Dark gray text */
    --sidebar-primary: 277 52% 53%; /* Purple for highlights */
    --sidebar-primary-foreground: 0 0% 100%; /* White text */
    --sidebar-accent: 277 52% 93%; /* Light purple */
    --sidebar-accent-foreground: 277 52% 53%;
    --sidebar-border: 240 5% 90%; /* Subtle blue-gray */
    --sidebar-ring: 277 52% 53%;
  }
  .dark {
    --background: 0 0% 5%; /* Deep black */
    --foreground: 0 0% 95%; /* Off-white text */
    --muted: 0 0% 20%; /* Dark gray */
    --muted-foreground: 0 0% 60%; /* Medium gray */
    --popover: 0 0% 15%; /* Very dark gray */
    --popover-foreground: 0 0% 90%; /* Off-white */
    --card: 0 0% 14%; /* Dark card */
    --card-foreground: 0 0% 85%;
    --border: 0 0% 25%; /* Subtle gray border */
    --input: 0 0% 20%; /* Dark input field */
    --primary: 277 52% 53%; /* Match purple accent */
    --primary-foreground: 0 0% 100%; /* White text */
    --secondary: 240 5% 40%; /* Muted dark blue */
    --secondary-foreground: 0 0% 95%; /* Off-white */
    --accent: 277 52% 63%; /* Slightly lighter purple */
    --accent-foreground: 0 0% 100%; /* White text */
    --destructive: 4 90% 58%;
    --destructive-foreground: 0 0% 100%;
    --ring: 277 52% 53%; /* Purple for focus rings */
    --radius: 0.5rem;
    --sidebar-background: 0 0% 14%; /* Dark sidebar */
    --sidebar-foreground: 0 0% 85%;
    --sidebar-primary: 277 52% 53%; /* Match purple accent */
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 277 52% 73%; /* Slightly muted purple */
    --sidebar-accent-foreground: 0 0% 95%;
    --sidebar-border: 0 0% 25%;
    --sidebar-ring: 277 52% 53%;
  }
}

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

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}
