@import "tailwindcss";
@import "./themes.css";

@plugin "tailwindcss-animate";

@custom-variant dark (&:is(.dark *));

@theme {
    /* Disable dark mode */
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

    /* Font Family */
    --font-family-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    /* Primary brand colors */
    --color-primary-50: #eef2ff;
    --color-primary-100: #e0e7ff;
    --color-primary-200: #c7d2fe;
    --color-primary-300: #a5b4fc;
    --color-primary-400: #818cf8;
    --color-primary-500: #6366f1;
    --color-primary-600: #4f46e5;
    --color-primary-700: #4338ca;
    --color-primary-800: #3730a3;
    --color-primary-900: #312e81;
    --color-primary-950: #1e1b4b;

    /* Semantic colors - Success */
    --color-success-50: #f0fdf4;
    --color-success-100: #dcfce7;
    --color-success-200: #bbf7d0;
    --color-success-300: #86efac;
    --color-success-400: #4ade80;
    --color-success-500: #22c55e;
    --color-success-600: #16a34a;
    --color-success-700: #15803d;
    --color-success-800: #166534;
    --color-success-900: #14532d;

    /* Semantic colors - Warning */
    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-200: #fde68a;
    --color-warning-300: #fcd34d;
    --color-warning-400: #fbbf24;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;
    --color-warning-800: #92400e;
    --color-warning-900: #78350f;

    /* Semantic colors - Error */
    --color-error-50: #fef2f2;
    --color-error-100: #fee2e2;
    --color-error-200: #fecaca;
    --color-error-300: #fca5a5;
    --color-error-400: #f87171;
    --color-error-500: #ef4444;
    --color-error-600: #dc2626;
    --color-error-700: #b91c1c;
    --color-error-800: #991b1b;
    --color-error-900: #7f1d1d;

    /* Semantic colors - Info */
    --color-info-50: #eff6ff;
    --color-info-100: #dbeafe;
    --color-info-200: #bfdbfe;
    --color-info-300: #93c5fd;
    --color-info-400: #60a5fa;
    --color-info-500: #3b82f6;
    --color-info-600: #2563eb;
    --color-info-700: #1d4ed8;
    --color-info-800: #1e40af;
    --color-info-900: #1e3a8a;

    /* Neutral grays */
    --color-neutral-50: #f9fafb;
    --color-neutral-100: #f3f4f6;
    --color-neutral-200: #e5e7eb;
    --color-neutral-300: #d1d5db;
    --color-neutral-400: #9ca3af;
    --color-neutral-500: #6b7280;
    --color-neutral-600: #4b5563;
    --color-neutral-700: #374151;
    --color-neutral-800: #1f2937;
    --color-neutral-900: #111827;

    /* Spacing scale */
    --spacing-18: 4.5rem;
    --spacing-88: 22rem;
    --spacing-112: 28rem;
    --spacing-128: 32rem;

    /* Border radius */
    --radius-4xl: 2rem;

    /* Box shadows */
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 10px 40px -10px rgba(0, 0, 0, 0.2);

    /* Animations */
    --animate-fade-in: fade-in 0.2s ease-in-out;
    --animate-slide-up: slide-up 0.3s ease-out;
    --animate-slide-down: slide-down 0.3s ease-out;
    --animate-shimmer: shimmer 2s infinite linear;

    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slide-up {
        from {
            transform: translateY(10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slide-down {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes shimmer {
        from { background-position: -1000px 0; }
        to { background-position: 1000px 0; }
    }
}

[x-cloak] {
    display: none;
}

/* Ensure dropdowns/menus render above dialog overlays when appended to body */
.multiselect__content-wrapper { z-index: 2147483647 !important; }

/* stylelint-disable-next-line at-rule-no-unknown */
/* @theme is a valid Tailwind CSS v4 at-rule */
@theme inline {
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);
    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);
    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);
    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);
    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);
    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);
    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);
    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);
    --color-chart-1: var(--chart-1);
    --color-chart-2: var(--chart-2);
    --color-chart-3: var(--chart-3);
    --color-chart-4: var(--chart-4);
    --color-chart-5: var(--chart-5);
    --color-sidebar: var(--sidebar);
    --color-sidebar-foreground: var(--sidebar-foreground);
    --color-sidebar-primary: var(--sidebar-primary);
    --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
    --color-sidebar-accent: var(--sidebar-accent);
    --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
    --color-sidebar-border: var(--sidebar-border);
    --color-sidebar-ring: var(--sidebar-ring);
}

 :root {
   --radius: 0.65rem;
   --background:  oklch(1 0 0);
   --foreground:  oklch(0.141 0.005 285.823);
   --card:  oklch(1 0 0);
   --card-foreground:  oklch(0.141 0.005 285.823);
   --popover:  oklch(1 0 0);
   --popover-foreground:  oklch(0.141 0.005 285.823);
   --primary:  oklch(0.488 0.243 264.376);
   --primary-foreground:  oklch(0.97 0.014 254.604);
   --secondary:  oklch(0.967 0.001 286.375);
   --secondary-foreground:  oklch(0.21 0.006 285.885);
   --muted:  oklch(0.967 0.001 286.375);
   --muted-foreground:  oklch(0.552 0.016 285.938);
   --accent:  oklch(0.967 0.001 286.375);
   --accent-foreground:  oklch(0.21 0.006 285.885);
   --destructive:  oklch(0.577 0.245 27.325);
   --border:  oklch(0.92 0.004 286.32);
   --input:  oklch(0.92 0.004 286.32);
   --ring:  oklch(0.708 0 0);
   --chart-1:  oklch(0.809 0.105 251.813);
   --chart-2:  oklch(0.623 0.214 259.815);
   --chart-3:  oklch(0.546 0.245 262.881);
   --chart-4:  oklch(0.488 0.243 264.376);
   --chart-5:  oklch(0.424 0.199 265.638);
   --sidebar:  oklch(0.985 0 0);
   --sidebar-foreground:  oklch(0.141 0.005 285.823);
   --sidebar-primary:  oklch(0.546 0.245 262.881);
   --sidebar-primary-foreground:  oklch(0.97 0.014 254.604);
   --sidebar-accent:  oklch(0.967 0.001 286.375);
   --sidebar-accent-foreground:  oklch(0.21 0.006 285.885);
   --sidebar-border:  oklch(0.92 0.004 286.32);
   --sidebar-ring:  oklch(0.708 0 0);
 }
 
 .dark {
   --background:  oklch(0.141 0.005 285.823);
   --foreground:  oklch(0.985 0 0);
   --card:  oklch(0.21 0.006 285.885);
   --card-foreground:  oklch(0.985 0 0);
   --popover:  oklch(0.21 0.006 285.885);
   --popover-foreground:  oklch(0.985 0 0);
   --primary:  oklch(0.488 0.243 264.376);
   --primary-foreground:  oklch(0.97 0.014 254.604);
   --secondary:  oklch(0.274 0.006 286.033);
   --secondary-foreground:  oklch(0.985 0 0);
   --muted:  oklch(0.274 0.006 286.033);
   --muted-foreground:  oklch(0.705 0.015 286.067);
   --accent:  oklch(0.274 0.006 286.033);
   --accent-foreground:  oklch(0.985 0 0);
   --destructive:  oklch(0.704 0.191 22.216);
   --border:  oklch(1 0 0 / 10%);
   --input:  oklch(1 0 0 / 15%);
   --ring:  oklch(0.556 0 0);
   --chart-1:  oklch(0.809 0.105 251.813);
   --chart-2:  oklch(0.623 0.214 259.815);
   --chart-3:  oklch(0.546 0.245 262.881);
   --chart-4:  oklch(0.488 0.243 264.376);
   --chart-5:  oklch(0.424 0.199 265.638);
   --sidebar:  oklch(0.21 0.006 285.885);
   --sidebar-foreground:  oklch(0.985 0 0);
   --sidebar-primary:  oklch(0.623 0.214 259.815);
   --sidebar-primary-foreground:  oklch(0.97 0.014 254.604);
   --sidebar-accent:  oklch(0.274 0.006 286.033);
   --sidebar-accent-foreground:  oklch(0.985 0 0);
   --sidebar-border:  oklch(1 0 0 / 10%);
   --sidebar-ring:  oklch(0.439 0 0);
 }

@layer base {
  * {
    @apply border-border outline-ring/50;
    }
  body {
    @apply bg-background text-foreground;
    }

    button:not([disabled]),
    [role="button"]:not([disabled]) {
      cursor: pointer;
    }
}
