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

@layer base {
  :root {
    /* Cream-based color palette for light mode */
    --background: 48 33% 94%; /* Cream background #F5F2E3 */
    --foreground: 240 10% 3.9%;
    --card: 48 30% 96%; /* Slightly lighter cream for cards #F8F6EA */
    --card-foreground: 240 10% 3.9%;
    --popover: 48 30% 96%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 48 16% 90%; /* Muted cream for secondary elements #EBE7D9 */
    --secondary-foreground: 240 5.9% 10%;
    --muted: 48 16% 90%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 43 74% 49%; /* Gold accent #DAA520 */
    --accent-foreground: 0 0% 98%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 48 16% 85%; /* Cream border #E5E0CE */
    --input: 48 16% 85%;
    --ring: 43 74% 49%; /* Gold ring */
    --radius: 0.5rem;
  }

  .dark {
    --background: 240 10% 3.9%; /* Keep dark mode as is */
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 43 74% 49%; /* Keep gold accent in dark mode */
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
  }
}

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