/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* shadcn/ui CSS Variables */
@layer base {
    :root {
        --background: 0 0% 100%;
        --foreground: 222.2 84% 4.9%;

        --card: 0 0% 100%;
        --card-foreground: 222.2 84% 4.9%;

        --popover: 0 0% 100%;
        --popover-foreground: 222.2 84% 4.9%;

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

        --secondary: 210 40% 96.1%;
        --secondary-foreground: 222.2 47.4% 11.2%;

        --muted: 210 40% 96.1%;
        --muted-foreground: 215.4 16.3% 46.9%;

        --accent: 210 40% 96.1%;
        --accent-foreground: 222.2 47.4% 11.2%;

        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 210 40% 98%;

        --border: 214.3 31.8% 91.4%;
        --input: 214.3 31.8% 91.4%;
        --ring: 222.2 84% 4.9%;

        --radius: 0.5rem;
    }

    .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%;
    }
}

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

/* shadcn/ui color utilities */
.bg-background { background-color: hsl(var(--background)) }
.bg-foreground { background-color: hsl(var(--foreground)) }
.bg-card { background-color: hsl(var(--card)) }
.bg-card-foreground { background-color: hsl(var(--card-foreground)) }
.bg-popover { background-color: hsl(var(--popover)) }
.bg-popover-foreground { background-color: hsl(var(--popover-foreground)) }
.bg-primary { background-color: hsl(var(--primary)) }
.bg-primary-foreground { background-color: hsl(var(--primary-foreground)) }
.bg-secondary { background-color: hsl(var(--secondary)) }
.bg-secondary-foreground { background-color: hsl(var(--secondary-foreground)) }
.bg-muted { background-color: hsl(var(--muted)) }
.bg-muted-foreground { background-color: hsl(var(--muted-foreground)) }
.bg-accent { background-color: hsl(var(--accent)) }
.bg-accent-foreground { background-color: hsl(var(--accent-foreground)) }
.bg-destructive { background-color: hsl(var(--destructive)) }
.bg-destructive-foreground { background-color: hsl(var(--destructive-foreground)) }

.text-background { color: hsl(var(--background)) }
.text-foreground { color: hsl(var(--foreground)) }
.text-card { color: hsl(var(--card)) }
.text-card-foreground { color: hsl(var(--card-foreground)) }
.text-popover { color: hsl(var(--popover)) }
.text-popover-foreground { color: hsl(var(--popover-foreground)) }
.text-primary { color: hsl(var(--primary)) }
.text-primary-foreground { color: hsl(var(--primary-foreground)) }
.text-secondary { color: hsl(var(--secondary)) }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)) }
.text-muted { color: hsl(var(--muted)) }
.text-muted-foreground { color: hsl(var(--muted-foreground)) }
.text-accent { color: hsl(var(--accent)) }
.text-accent-foreground { color: hsl(var(--accent-foreground)) }
.text-destructive { color: hsl(var(--destructive)) }
.text-destructive-foreground { color: hsl(var(--destructive-foreground)) }

.border-border { border-color: hsl(var(--border)) }
.border-input { border-color: hsl(var(--input)) }
.ring-ring { --tw-ring-color: hsl(var(--ring)) }

/* Hover variants */
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / 0.9) }
.hover\:bg-secondary\/80:hover { background-color: hsl(var(--secondary) / 0.8) }
.hover\:bg-destructive\/90:hover { background-color: hsl(var(--destructive) / 0.9) }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)) }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)) }

/* Focus variants */
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: hsl(var(--ring)) }
.ring-offset-background { --tw-ring-offset-color: hsl(var(--background)) }