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

body {
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

@layer base {
  :root {
    --background: 48 20% 90%; /* #E8E6D8 Desaturated Gold */
    --foreground: 48 10% 20%; /* #3A3831 Darker shade for text */
    --card: 48 20% 95%; /* #F0EFEA Slightly lighter than background */
    --card-foreground: 48 10% 20%;
    --popover: 48 20% 95%;
    --popover-foreground: 48 10% 20%;
    --primary: 48 85% 50%; /* #F0C200 Vivid Gold */
    --primary-foreground: 48 85% 10%; /* #302600 Dark text on primary */
    --secondary: 48 30% 80%; /* #D7D3BF */
    --secondary-foreground: 48 10% 20%;
    --muted: 48 20% 85%; /* #E0DDCB */
    --muted-foreground: 48 10% 45%; /* #7E7A6B */
    --accent: 18 75% 55%; /* #F28500 Orange */
    --accent-foreground: 0 0% 100%; /* #FFFFFF White text on accent */
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 48 20% 80%; /* #D1CEBE */
    --input: 48 20% 85%; /* #E0DDCB */
    --ring: 48 85% 50%; /* #F0C200 For focus rings */
    --chart-1: 48 85% 50%; /* primary */
    --chart-2: 18 75% 55%; /* accent */
    --chart-3: 48 50% 60%; /* lighter gold */
    --chart-4: 25 60% 65%; /* lighter orange */
    --chart-5: 48 20% 70%; /* muted gold */
    --radius: 0.5rem;

    /* Sidebar specific colors */
    --sidebar-background: 48 20% 88%; /* #E3E1D1 */
    --sidebar-foreground: 48 10% 25%; /* #47453C */
    --sidebar-primary: 48 85% 50%; /* #F0C200 */
    --sidebar-primary-foreground: 48 85% 10%; /* #302600 */
    --sidebar-accent: 18 75% 55%; /* #F28500 */
    --sidebar-accent-foreground: 0 0% 100%;
    --sidebar-border: 48 20% 75%; /* #C9C6B6 */
    --sidebar-ring: 48 85% 50%;
  }

  .dark {
    /* Dark theme adaptation of Dey Weaver colors */
    --background: 48 10% 10%; /* Dark Gold/Brown */
    --foreground: 48 20% 90%; /* Light Desaturated Gold */
    --card: 48 10% 15%; 
    --card-foreground: 48 20% 90%;
    --popover: 48 10% 15%;
    --popover-foreground: 48 20% 90%;
    --primary: 48 85% 50%; /* Vivid Gold - remains bright */
    --primary-foreground: 48 85% 10%; /* Dark text on primary */
    --secondary: 48 15% 25%;
    --secondary-foreground: 48 20% 90%;
    --muted: 48 15% 20%;
    --muted-foreground: 48 20% 60%;
    --accent: 18 75% 55%; /* Orange - remains bright */
    --accent-foreground: 0 0% 100%;
    --destructive: 0 70% 50%;
    --destructive-foreground: 0 0% 98%;
    --border: 48 10% 25%;
    --input: 48 10% 20%;
    --ring: 48 85% 50%; 
    --chart-1: 48 85% 50%;
    --chart-2: 18 75% 55%;
    --chart-3: 48 50% 70%;
    --chart-4: 25 60% 75%;
    --chart-5: 48 20% 60%;

    --sidebar-background: 48 10% 12%;
    --sidebar-foreground: 48 20% 85%;
    --sidebar-primary: 48 85% 50%;
    --sidebar-primary-foreground: 48 85% 10%;
    --sidebar-accent: 18 75% 55%;
    --sidebar-accent-foreground: 0 0% 100%;
    --sidebar-border: 48 10% 20%;
    --sidebar-ring: 48 85% 50%;
  }
}

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