@import 'tailwindcss';

@import 'tw-animate-css';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

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

@theme inline {
    --font-sans:
        ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

    --radius-lg: var(--radius);
    --radius-md: calc(var(--radius) - 2px);
    --radius-sm: 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-background);
    --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);

    --color-inertia: var(--inertia);
}

/*
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
    *,
    ::after,
    ::before,
    ::backdrop,
    ::file-selector-button {
        border-color: var(--color-border, currentColor);
    }
}

@layer utilities {
    body,
    html {
        --font-sans:
            'Instrument Sans', ui-sans-serif, system-ui, sans-serif,
            'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
            'Noto Color Emoji';
    }
}

:root {
    --background: hsl(0 0% 100%);
    --foreground: hsl(150 10% 10%);

    --card: hsl(0 0% 100%);
    --card-foreground: hsl(150 10% 10%);

    --popover: hsl(0 0% 100%);
    --popover-foreground: hsl(150 10% 10%);

    /* Faraja Green - #128206 */
    --primary: #128206;
    --primary-foreground: #ffffff;

    /* Faraja Orange */
    --secondary: #fff3e6;
    --secondary-foreground: #fd8503;

    --muted: hsl(140 10% 96%);
    --muted-foreground: hsl(150 5% 45%);

    /* Faraja Orange Accent */
    --accent: #fff3e6;
    --accent-foreground: #fd8503;

    --destructive: hsl(0 84.2% 60.2%);
    --destructive-foreground: #ffffff;

    --border: hsl(140 10% 89%);
    --input: hsl(140 10% 82%);

    --ring: #128206;
    --inertia: #128206;

    /* Charts */
    --chart-1: #128206;
    --chart-2: #fd8503;
    --chart-3: #229c16;
    --chart-4: #f59e0b;
    --chart-5: #65a30d;

    --radius: 0.5rem;

    /* Sidebar */
    --sidebar-background: hsl(140 20% 98%);
    --sidebar-foreground: hsl(150 10% 25%);

    --sidebar-primary: #128206;
    --sidebar-primary-foreground: #ffffff;

    --sidebar-accent: #fff3e6;
    --sidebar-accent-foreground: #fd8503;

    --sidebar-border: hsl(140 10% 91%);
    --sidebar-ring: #128206;

    --sidebar: hsl(140 20% 98%);
}

.dark {
    color-scheme: dark;

    --background: hsl(150 15% 7%);
    --foreground: hsl(0 0% 98%);

    --card: hsl(150 12% 10%);
    --card-foreground: hsl(0 0% 98%);

    --popover: hsl(150 12% 10%);
    --popover-foreground: hsl(0 0% 98%);

    /* Faraja Green */
    --primary: #128206;
    --primary-foreground: #ffffff;

    /* Faraja Orange */
    --secondary: hsl(30 30% 16%);
    --secondary-foreground: #fd8503;

    --muted: hsl(150 10% 15%);
    --muted-foreground: hsl(140 5% 65%);

    /* Orange Accent */
    --accent: hsl(30 30% 16%);
    --accent-foreground: #fd8503;

    --destructive: hsl(0 84% 60%);
    --destructive-foreground: #ffffff;

    --border: hsl(150 10% 18%);
    --input: hsl(150 10% 22%);

    --ring: #128206;
    --inertia: #128206;

    /* Charts */
    --chart-1: #128206;
    --chart-2: #fd8503;
    --chart-3: #229c16;
    --chart-4: #f59e0b;
    --chart-5: #65a30d;

    /* Sidebar */
    --sidebar-background: hsl(150 15% 8%);
    --sidebar-foreground: hsl(140 10% 95%);

    --sidebar-primary: #128206;
    --sidebar-primary-foreground: #ffffff;

    --sidebar-accent: hsl(30 35% 17%);
    --sidebar-accent-foreground: #fd8503;

    --sidebar-border: hsl(150 10% 16%);
    --sidebar-ring: #128206;

    --sidebar: hsl(150 15% 8%);
}

@layer base {
    * {
        @apply border-border outline-ring/50;
    }

    body {
        @apply bg-background text-foreground;
    }

    input,
    textarea,
    select {
        border-color: var(--input);
    }
}

html {
    scrollbar-gutter: stable;
}

[data-slot='card'] {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.03),
        0 8px 24px rgba(0, 0, 0, 0.025);
}

.dark [data-slot='card'] {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-slot='dropdown-menu-content'] {
    border-color: rgba(0, 0, 0, 0.08);
}

.dark [data-slot='dropdown-menu-content'] {
    border-color: rgba(255, 255, 255, 0.08);
}
