@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: Instrument 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);
    --animate-accordion-down: accordion-down 0.2s ease-out;
    --animate-accordion-up: accordion-up 0.2s ease-out;
  @keyframes accordion-down {
  from {
    height: 0;
        }
  to {
    height: var(--reka-accordion-content-height);
        }
    }
  @keyframes accordion-up {
  from {
    height: var(--reka-accordion-content-height);
        }
  to {
    height: 0;
        }
    }
}

/*
  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-gray-200, 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 {
    /* Shadcn Clean Theme */
    --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(240 5.9% 10%);
    --primary-foreground: hsl(0 0% 98%);
    --secondary: hsl(240 4.8% 95.9%);
    --secondary-foreground: hsl(240 5.9% 10%);
    --muted: hsl(240 4.8% 95.9%);
    --muted-foreground: hsl(240 3.8% 46.1%);
    --accent: hsl(240 4.8% 95.9%);
    --accent-foreground: hsl(240 5.9% 10%);
    --destructive: hsl(0 84.2% 60.2%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(240 5.9% 90%);
    --input: hsl(240 5.9% 90%);
    --ring: hsl(240 5.9% 10%);
    --chart-1: hsl(12 76% 61%);
    --chart-2: hsl(173 58% 39%);
    --chart-3: hsl(197 37% 24%);
    --chart-4: hsl(43 74% 66%);
    --chart-5: hsl(27 87% 67%);
    --radius: 0.5rem;

    /* Shadcn Clean Colors */
    --school-primary: hsl(240 5.9% 10%);           /* Clean dark */
    --school-secondary: hsl(240 4.8% 95.9%);       /* Light gray */
    --school-accent: hsl(240 4.8% 95.9%);          /* Muted accent */
    --school-success: hsl(142 76% 36%);             /* Green */
    --school-warning: hsl(38 92% 50%);              /* Orange */
    --school-error: hsl(0 84% 60%);                 /* Red */
    --school-info: hsl(221 83% 53%);                /* Blue */

    /* Shadcn Sidebar Colors */
    --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(240 4.8% 95.9%);
    --sidebar-accent-foreground: hsl(240 5.9% 10%);
    --sidebar-border: hsl(240 5.9% 90%);
    --sidebar-ring: hsl(240 5.9% 10%);
    --sidebar: hsl(0 0% 98%);
}

/* Theme: Vibrant */
[data-theme="vibrant"] {
    --school-primary: hsl(262.1 83.3% 57.8%);
    --school-secondary: hsl(142.1 76.2% 36.3%);
    --school-accent: hsl(38.4 92.1% 50.2%);
    --school-success: hsl(142.1 76.2% 36.3%);
    --school-warning: hsl(38.4 92.1% 50.2%);
    --school-error: hsl(0 84.2% 60.2%);
    --school-info: hsl(199.4 89.2% 48.4%);
    --school-primary-light: hsl(262.1 83.3% 70%);
    --school-secondary-light: hsl(142.1 76.2% 50%);
    --school-accent-light: hsl(38.4 92.1% 65%);

    --sidebar-background: hsl(262.1 83.3% 57.8%);
    --sidebar-foreground: hsl(210 40% 98%);
    --sidebar-primary: hsl(210 40% 98%);
    --sidebar-primary-foreground: hsl(262.1 83.3% 57.8%);
    --sidebar-accent: hsl(262.1 83.3% 65%);
    --sidebar-accent-foreground: hsl(210 40% 98%);
    --sidebar-border: hsl(262.1 83.3% 65%);
    --sidebar-ring: hsl(142.1 76.2% 36.3%);
    --sidebar: hsl(262.1 83.3% 57.8%);
}

/* Theme: Ocean */
[data-theme="ocean"] {
    --school-primary: hsl(199.4 89.2% 48.4%);
    --school-secondary: hsl(187.2 85.7% 53.3%);
    --school-accent: hsl(173.4 80.4% 40%);
    --school-success: hsl(142.1 76.2% 36.3%);
    --school-warning: hsl(32.6 94.6% 43.7%);
    --school-error: hsl(0 84.2% 60.2%);
    --school-info: hsl(199.4 89.2% 48.4%);
    --school-primary-light: hsl(199.4 89.2% 60%);
    --school-secondary-light: hsl(187.2 85.7% 65%);
    --school-accent-light: hsl(173.4 80.4% 55%);

    --sidebar-background: hsl(199.4 89.2% 48.4%);
    --sidebar-foreground: hsl(210 40% 98%);
    --sidebar-primary: hsl(210 40% 98%);
    --sidebar-primary-foreground: hsl(199.4 89.2% 48.4%);
    --sidebar-accent: hsl(199.4 89.2% 55%);
    --sidebar-accent-foreground: hsl(210 40% 98%);
    --sidebar-border: hsl(199.4 89.2% 55%);
    --sidebar-ring: hsl(187.2 85.7% 53.3%);
    --sidebar: hsl(199.4 89.2% 48.4%);
}

/* Theme: Forest */
[data-theme="forest"] {
    --school-primary: hsl(142.1 76.2% 36.3%);
    --school-secondary: hsl(120 60% 50%);
    --school-accent: hsl(84.8 85.2% 40.4%);
    --school-success: hsl(142.1 76.2% 36.3%);
    --school-warning: hsl(32.6 94.6% 43.7%);
    --school-error: hsl(0 84.2% 60.2%);
    --school-info: hsl(199.4 89.2% 48.4%);
    --school-primary-light: hsl(142.1 76.2% 50%);
    --school-secondary-light: hsl(120 60% 65%);
    --school-accent-light: hsl(84.8 85.2% 55%);

    --sidebar-background: hsl(142.1 76.2% 36.3%);
    --sidebar-foreground: hsl(210 40% 98%);
    --sidebar-primary: hsl(210 40% 98%);
    --sidebar-primary-foreground: hsl(142.1 76.2% 36.3%);
    --sidebar-accent: hsl(142.1 76.2% 45%);
    --sidebar-accent-foreground: hsl(210 40% 98%);
    --sidebar-border: hsl(142.1 76.2% 45%);
    --sidebar-ring: hsl(120 60% 50%);
    --sidebar: hsl(142.1 76.2% 36.3%);
}

/* Theme: Sunset */
[data-theme="sunset"] {
    --school-primary: hsl(14.3 100% 53.3%);
    --school-secondary: hsl(38.4 92.1% 50.2%);
    --school-accent: hsl(340.7 82.2% 52.5%);
    --school-success: hsl(142.1 76.2% 36.3%);
    --school-warning: hsl(38.4 92.1% 50.2%);
    --school-error: hsl(0 84.2% 60.2%);
    --school-info: hsl(199.4 89.2% 48.4%);
    --school-primary-light: hsl(14.3 100% 65%);
    --school-secondary-light: hsl(38.4 92.1% 65%);
    --school-accent-light: hsl(340.7 82.2% 65%);

    --sidebar-background: hsl(14.3 100% 53.3%);
    --sidebar-foreground: hsl(210 40% 98%);
    --sidebar-primary: hsl(210 40% 98%);
    --sidebar-primary-foreground: hsl(14.3 100% 53.3%);
    --sidebar-accent: hsl(14.3 100% 60%);
    --sidebar-accent-foreground: hsl(210 40% 98%);
    --sidebar-border: hsl(14.3 100% 60%);
    --sidebar-ring: hsl(38.4 92.1% 50.2%);
    --sidebar: hsl(14.3 100% 53.3%);
}

/* Theme: Royal */
[data-theme="royal"] {
    --school-primary: hsl(263.4 70% 50.4%);
    --school-secondary: hsl(280.7 89.6% 50.4%);
    --school-accent: hsl(291.3 84% 61%);
    --school-success: hsl(142.1 76.2% 36.3%);
    --school-warning: hsl(32.6 94.6% 43.7%);
    --school-error: hsl(0 84.2% 60.2%);
    --school-info: hsl(199.4 89.2% 48.4%);
    --school-primary-light: hsl(263.4 70% 65%);
    --school-secondary-light: hsl(280.7 89.6% 65%);
    --school-accent-light: hsl(291.3 84% 75%);

    --sidebar-background: hsl(263.4 70% 50.4%);
    --sidebar-foreground: hsl(210 40% 98%);
    --sidebar-primary: hsl(210 40% 98%);
    --sidebar-primary-foreground: hsl(263.4 70% 50.4%);
    --sidebar-accent: hsl(263.4 70% 60%);
    --sidebar-accent-foreground: hsl(210 40% 98%);
    --sidebar-border: hsl(263.4 70% 60%);
    --sidebar-ring: hsl(280.7 89.6% 50.4%);
    --sidebar: hsl(263.4 70% 50.4%);
}

.dark {
    --background: hsl(240 10% 3.9%);
    --foreground: hsl(0 0% 98%);
    --card: hsl(240 10% 3.9%);
    --card-foreground: hsl(0 0% 98%);
    --popover: hsl(240 10% 3.9%);
    --popover-foreground: hsl(0 0% 98%);
    --primary: hsl(0 0% 98%);
    --primary-foreground: hsl(240 5.9% 10%);
    --secondary: hsl(240 3.7% 15.9%);
    --secondary-foreground: hsl(0 0% 98%);
    --muted: hsl(240 3.7% 15.9%);
    --muted-foreground: hsl(240 5% 64.9%);
    --accent: hsl(240 3.7% 15.9%);
    --accent-foreground: hsl(0 0% 98%);
    --destructive: hsl(0 62.8% 30.6%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(240 3.7% 15.9%);
    --input: hsl(240 3.7% 15.9%);
    --ring: hsl(240 4.9% 83.9%);
    --chart-1: hsl(220 70% 50%);
    --chart-2: hsl(160 60% 45%);
    --chart-3: hsl(30 80% 55%);
    --chart-4: hsl(280 65% 60%);
    --chart-5: hsl(340 75% 55%);

    /* Default Dark Theme: Professional */
    --school-primary: hsl(210 20% 98%);
    --school-secondary: hsl(142.1 60% 50%);
    --school-accent: hsl(47.9 85% 60%);
    --school-success: hsl(142.1 60% 50%);
    --school-warning: hsl(32.6 85% 55%);
    --school-error: hsl(0 62.8% 50%);
    --school-info: hsl(221.2 70% 60%);
    --school-primary-light: hsl(210 20% 90%);
    --school-secondary-light: hsl(142.1 60% 60%);
    --school-accent-light: hsl(47.9 85% 70%);

    --sidebar-background: hsl(224 71.4% 4.1%);
    --sidebar-foreground: hsl(210 20% 98%);
    --sidebar-primary: hsl(210 20% 98%);
    --sidebar-primary-foreground: hsl(224 71.4% 4.1%);
    --sidebar-accent: hsl(215 27.9% 16.9%);
    --sidebar-accent-foreground: hsl(210 20% 98%);
    --sidebar-border: hsl(215 27.9% 16.9%);
    --sidebar-ring: hsl(142.1 60% 50%);
    --sidebar: hsl(224 71.4% 4.1%);
}

/* Dark Theme: Vibrant */
.dark[data-theme="vibrant"] {
    --school-primary: hsl(262.1 70% 60%);
    --school-secondary: hsl(142.1 60% 50%);
    --school-accent: hsl(38.4 80% 60%);
    --school-success: hsl(142.1 60% 50%);
    --school-warning: hsl(38.4 80% 60%);
    --school-error: hsl(0 62.8% 50%);
    --school-info: hsl(199.4 70% 60%);
    --school-primary-light: hsl(262.1 70% 75%);
    --school-secondary-light: hsl(142.1 60% 65%);
    --school-accent-light: hsl(38.4 80% 75%);

    --sidebar-background: hsl(224 71.4% 4.1%);
    --sidebar-foreground: hsl(210 20% 98%);
    --sidebar-primary: hsl(210 20% 98%);
    --sidebar-primary-foreground: hsl(224 71.4% 4.1%);
    --sidebar-accent: hsl(215 27.9% 16.9%);
    --sidebar-accent-foreground: hsl(210 20% 98%);
    --sidebar-border: hsl(215 27.9% 16.9%);
    --sidebar-ring: hsl(262.1 70% 60%);
    --sidebar: hsl(224 71.4% 4.1%);
}

/* Dark Theme: Ocean */
.dark[data-theme="ocean"] {
    --school-primary: hsl(199.4 70% 60%);
    --school-secondary: hsl(187.2 70% 60%);
    --school-accent: hsl(173.4 60% 55%);
    --school-success: hsl(142.1 60% 50%);
    --school-warning: hsl(32.6 85% 55%);
    --school-error: hsl(0 62.8% 50%);
    --school-info: hsl(199.4 70% 60%);
    --school-primary-light: hsl(199.4 70% 75%);
    --school-secondary-light: hsl(187.2 70% 75%);
    --school-accent-light: hsl(173.4 60% 70%);

    --sidebar-background: hsl(224 71.4% 4.1%);
    --sidebar-foreground: hsl(210 20% 98%);
    --sidebar-primary: hsl(210 20% 98%);
    --sidebar-primary-foreground: hsl(224 71.4% 4.1%);
    --sidebar-accent: hsl(215 27.9% 16.9%);
    --sidebar-accent-foreground: hsl(210 20% 98%);
    --sidebar-border: hsl(215 27.9% 16.9%);
    --sidebar-ring: hsl(199.4 70% 60%);
    --sidebar: hsl(224 71.4% 4.1%);
}

/* Dark Theme: Forest */
.dark[data-theme="forest"] {
    --school-primary: hsl(142.1 60% 50%);
    --school-secondary: hsl(120 50% 60%);
    --school-accent: hsl(84.8 70% 55%);
    --school-success: hsl(142.1 60% 50%);
    --school-warning: hsl(32.6 85% 55%);
    --school-error: hsl(0 62.8% 50%);
    --school-info: hsl(199.4 70% 60%);
    --school-primary-light: hsl(142.1 60% 65%);
    --school-secondary-light: hsl(120 50% 75%);
    --school-accent-light: hsl(84.8 70% 70%);

    --sidebar-background: hsl(224 71.4% 4.1%);
    --sidebar-foreground: hsl(210 20% 98%);
    --sidebar-primary: hsl(210 20% 98%);
    --sidebar-primary-foreground: hsl(224 71.4% 4.1%);
    --sidebar-accent: hsl(215 27.9% 16.9%);
    --sidebar-accent-foreground: hsl(210 20% 98%);
    --sidebar-border: hsl(215 27.9% 16.9%);
    --sidebar-ring: hsl(142.1 60% 50%);
    --sidebar: hsl(224 71.4% 4.1%);
}

/* Dark Theme: Sunset */
.dark[data-theme="sunset"] {
    --school-primary: hsl(14.3 80% 60%);
    --school-secondary: hsl(38.4 80% 60%);
    --school-accent: hsl(340.7 70% 60%);
    --school-success: hsl(142.1 60% 50%);
    --school-warning: hsl(38.4 80% 60%);
    --school-error: hsl(0 62.8% 50%);
    --school-info: hsl(199.4 70% 60%);
    --school-primary-light: hsl(14.3 80% 75%);
    --school-secondary-light: hsl(38.4 80% 75%);
    --school-accent-light: hsl(340.7 70% 75%);

    --sidebar-background: hsl(224 71.4% 4.1%);
    --sidebar-foreground: hsl(210 20% 98%);
    --sidebar-primary: hsl(210 20% 98%);
    --sidebar-primary-foreground: hsl(224 71.4% 4.1%);
    --sidebar-accent: hsl(215 27.9% 16.9%);
    --sidebar-accent-foreground: hsl(210 20% 98%);
    --sidebar-border: hsl(215 27.9% 16.9%);
    --sidebar-ring: hsl(14.3 80% 60%);
    --sidebar: hsl(224 71.4% 4.1%);
}

/* Dark Theme: Royal */
.dark[data-theme="royal"] {
    --school-primary: hsl(263.4 60% 60%);
    --school-secondary: hsl(280.7 70% 60%);
    --school-accent: hsl(291.3 70% 70%);
    --school-success: hsl(142.1 60% 50%);
    --school-warning: hsl(32.6 85% 55%);
    --school-error: hsl(0 62.8% 50%);
    --school-info: hsl(199.4 70% 60%);
    --school-primary-light: hsl(263.4 60% 75%);
    --school-secondary-light: hsl(280.7 70% 75%);
    --school-accent-light: hsl(291.3 70% 85%);

    --sidebar-background: hsl(224 71.4% 4.1%);
    --sidebar-foreground: hsl(210 20% 98%);
    --sidebar-primary: hsl(210 20% 98%);
    --sidebar-primary-foreground: hsl(224 71.4% 4.1%);
    --sidebar-accent: hsl(215 27.9% 16.9%);
    --sidebar-accent-foreground: hsl(210 20% 98%);
    --sidebar-border: hsl(215 27.9% 16.9%);
    --sidebar-ring: hsl(263.4 60% 60%);
    --sidebar: hsl(224 71.4% 4.1%);
}

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

/* Fix sidebar icon clickability in collapsed state */
.group[data-collapsible="icon"] [data-sidebar="menu-button"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    padding: 0.25rem !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
}

.group[data-collapsible="icon"] [data-sidebar="menu-button"] > span {
    display: none !important;
}

.group[data-collapsible="icon"] [data-sidebar="menu-button"] > svg {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0 !important;
}

.group[data-collapsible="icon"] [data-sidebar="menu-button"]:hover {
    background-color: hsl(var(--sidebar-accent)) !important;
    color: hsl(var(--sidebar-accent-foreground)) !important;
}

/* Shadcn Clean Dashboard Styles */
@layer components {
    /* Clean card styles - no hover effects */
    .shadcn-card {
        background: hsl(var(--card));
        border: 1px solid hsl(var(--border));
        border-radius: var(--radius);
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }

    /* Stats card with clean design */
    .shadcn-stats-card {
        background: hsl(var(--card));
        border: 1px solid hsl(var(--border));
        border-radius: var(--radius);
        padding: 1.5rem;
    }

    /* Clean sidebar styling */
    .shadcn-sidebar {
        background: hsl(var(--sidebar-background));
        border-right: 1px solid hsl(var(--border));
    }

    .shadcn-sidebar-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        margin: 0.125rem 0.5rem;
        border-radius: calc(var(--radius) - 2px);
        color: hsl(var(--sidebar-foreground));
        text-decoration: none;
        transition: background-color 0.15s ease-in-out;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .shadcn-sidebar-item:hover {
        background: hsl(var(--sidebar-accent));
    }

    .shadcn-sidebar-item.active {
        background: hsl(var(--sidebar-primary));
        color: hsl(var(--sidebar-primary-foreground));
    }

    /* Clean header styling */
    .shadcn-header {
        background: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Clean input styling */
    .shadcn-input {
        background: hsl(var(--background));
        border: 1px solid hsl(var(--border));
        border-radius: var(--radius);
        padding: 0.5rem 0.75rem;
        color: hsl(var(--foreground));
        font-size: 0.875rem;
        transition: border-color 0.15s ease-in-out;
    }

    .shadcn-input:focus {
        outline: none;
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
    }

    /* Clean button styling */
    .shadcn-button {
        background: hsl(var(--primary));
        color: hsl(var(--primary-foreground));
        border: 1px solid hsl(var(--primary));
        border-radius: var(--radius);
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background-color 0.15s ease-in-out;
    }

    .shadcn-button:hover {
        background: hsl(var(--primary) / 0.9);
    }

    /* Clean progress bar */
    .shadcn-progress {
        background: hsl(var(--secondary));
        border-radius: var(--radius);
        height: 0.5rem;
        overflow: hidden;
    }

    .shadcn-progress-bar {
        background: hsl(var(--primary));
        height: 100%;
        border-radius: var(--radius);
        transition: width 0.3s ease;
    }

    /* Clean table styling */
    .shadcn-table {
        width: 100%;
        border-collapse: collapse;
    }

    .shadcn-table th {
        background: hsl(var(--muted));
        color: hsl(var(--muted-foreground));
        font-weight: 600;
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid hsl(var(--border));
        font-size: 0.875rem;
    }

    .shadcn-table td {
        padding: 0.75rem;
        border-bottom: 1px solid hsl(var(--border));
        color: hsl(var(--foreground));
        font-size: 0.875rem;
    }


    /* Custom scrollbar */
    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
    }

    .custom-scrollbar::-webkit-scrollbar-track {
        background: hsl(var(--muted));
        border-radius: 3px;
    }

    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: hsl(var(--primary));
        border-radius: 3px;
    }

    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: hsl(var(--primary) / 0.8);
    }
}

/* Animations */
/* Modern Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Modern Utility Animations */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease-out;
}

.animate-pulse-modern {
    animation: pulse 2s infinite;
}

.animate-bounce-modern {
    animation: bounce 1s infinite;
}

/* Staggered animations for lists */
.animate-stagger > * {
    animation: fadeInUp 0.6s ease-out;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Modern scrollbar */
.scrollbar-modern::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollbar-modern::-webkit-scrollbar-track {
    background: hsl(var(--muted));
    border-radius: 4px;
}

.scrollbar-modern::-webkit-scrollbar-thumb {
    background: hsl(var(--school-primary));
    border-radius: 4px;
    border: 2px solid hsl(var(--muted));
}

.scrollbar-modern::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--school-primary-light));
}

/* Glass morphism effects */
.glass-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Modern shadows */
.shadow-modern {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-modern-lg {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-modern-xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}
