/* Irma Design System - CSS Variables for basecoat-ui */
/* Based on actual Irma app repository colors */
/* Wrapped in hsl() because basecoat-ui uses these directly as CSS values */

:root {
    --radius: 0.5rem;

    /* Light mode (not used, but defined for completeness) */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(240, 10%, 3.9%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(240, 10%, 3.9%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(240, 10%, 3.9%);
    --primary: hsl(335, 53%, 77%);
    --primary-foreground: hsl(0, 0%, 13%);
    --secondary: hsl(240, 4.8%, 95.9%);
    --secondary-foreground: hsl(240, 5.9%, 10%);
    --muted: hsl(0, 0%, 100%);
    --muted-foreground: hsl(240, 3.8%, 46.1%);
    --accent: hsl(0, 0%, 91.49%);
    --accent-foreground: hsl(240, 5.9%, 10%);
    --destructive: hsl(0, 72.2%, 50.6%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 5.9%, 90%);
    --input: hsl(240, 5.9%, 90%);
    --ring: hsl(240, 10%, 3.9%);
    --sidebar-background: hsl(0, 0%, 98%);
    --sidebar-foreground: hsl(240, 5.3%, 26.1%);
    --sidebar-primary: hsl(240, 5.9%, 10%);
    --sidebar-primary-foreground: hsl(0, 0%, 98%);
    --sidebar-accent: hsl(0, 0%, 91.49%);
    --sidebar-accent-foreground: hsl(240, 5.9%, 10%);
    --sidebar-border: hsl(220, 13%, 91%);
    --sidebar-ring: hsl(217.2, 91.2%, 59.8%);
}

.dark {
    /* Dark mode - Irma app colors */
    --background: hsl(290, 6%, 12%);
    --foreground: hsl(0, 0%, 92%);
    --card: hsl(290, 10%, 10%);
    --card-foreground: hsl(0, 0%, 90%);
    --popover: hsl(290, 10%, 10%);
    --popover-foreground: hsl(0, 0%, 90%);
    --primary: hsl(335, 53%, 77%);
    --primary-foreground: hsl(0, 0%, 13%);
    --secondary: hsl(290, 3.7%, 15.9%);
    --secondary-foreground: hsl(0, 0%, 90%);
    --muted: hsl(290, 6%, 12%);
    --muted-foreground: hsl(290, 5%, 64.9%);
    --accent: hsl(290, 6%, 13%);
    --accent-foreground: hsl(0, 0%, 90%);
    --destructive: hsl(0, 100%, 73.75%);
    --destructive-foreground: hsl(0, 0%, 90%);
    --border: hsl(290, 3.7%, 19%);
    --input: hsl(290, 3.7%, 15.9%);
    --ring: hsl(290, 4.9%, 83.9%);
    --sidebar-background: hsl(290, 6%, 14%);
    --sidebar-foreground: hsl(0, 0%, 85%);
    --sidebar-primary: hsl(224.3, 76.3%, 48%);
    --sidebar-primary-foreground: hsl(0, 0%, 100%);
    --sidebar-accent: hsl(290, 3.7%, 15.9%);
    --sidebar-accent-foreground: hsl(290, 4.8%, 95.9%);
    --sidebar-border: hsl(290, 3.7%, 15.9%);
    --sidebar-ring: hsl(217.2, 91.2%, 59.8%);
}

/* ponytail: preflight disabled in tailwind.config (corePlugins: { preflight: false }),
   so basecoat's @layer styles win without !important. */
.btn {
    padding-inline: calc(var(--spacing) * 2.5);
    gap: calc(var(--spacing) * 1.5);
    font-weight: var(--font-weight-medium);
}

.btn[data-variant="primary"],
.btn:not([data-variant]) {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.btn[data-variant="secondary"] {
    background-color: var(--color-secondary);
    color: var(--color-secondary-foreground);
}

.btn[data-variant="outline"] {
    background-color: transparent;
    color: var(--color-foreground);
    border-color: var(--color-border);
}

.btn[data-variant="ghost"] {
    background-color: transparent;
    color: var(--color-foreground);
}

.btn[data-variant="destructive"] {
    background-color: var(--color-destructive);
    color: var(--color-destructive-foreground);
}

.btn[data-variant="link"] {
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: underline;
}
