/* =================================
   COLOGNE FLIPPERS ULTRA-PREMIUM DESIGN SYSTEM
   Luxury Professional Interface - High-End Design
   ================================= */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* =================================
   DESIGN TOKENS - PREMIUM SYSTEM
   ================================= */

:root {
    /* Premium Color Palette */
    --color-primary: #0066FF;
    --color-primary-50: #E6F0FF;
    --color-primary-100: #CCE1FF;
    --color-primary-200: #99C3FF;
    --color-primary-300: #66A5FF;
    --color-primary-400: #3387FF;
    --color-primary-500: #0066FF;
    --color-primary-600: #0052CC;
    --color-primary-700: #003D99;
    --color-primary-800: #002966;
    --color-primary-900: #001433;

    /* Neutral Sophisticated Palette */
    --color-neutral-0: #FFFFFF;
    --color-neutral-50: #FAFBFC;
    --color-neutral-100: #F4F6F8;
    --color-neutral-200: #E9EDF2;
    --color-neutral-300: #D4DBE4;
    --color-neutral-400: #9AA4B2;
    --color-neutral-500: #6B7785;
    --color-neutral-600: #4A5568;
    --color-neutral-700: #2D3748;
    --color-neutral-800: #1A202C;
    --color-neutral-900: #0F1419;
    --color-neutral-950: #0A0E13;

    /* Status Colors - Professional */
    --color-success: #00C851;
    --color-success-light: #E8F5E8;
    --color-warning: #FF9F00;
    --color-warning-light: #FFF3E0;
    --color-error: #FF4444;
    --color-error-light: #FFEBEE;
    --color-info: #33B5E5;
    --color-info-light: #E3F2FD;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #0052CC 50%, #003D99 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 82, 204, 0.05) 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    --gradient-surface-dark: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(15, 20, 25, 0.98) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);

    /* Advanced Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-premium: 0 32px 64px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
    --shadow-glow-soft: 0 0 40px rgba(0, 102, 255, 0.15);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-backdrop: blur(24px);
    --glass-backdrop-strong: blur(32px);

    /* Typography System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Spacing System - Golden Ratio Based */
    --space-0: 0;
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */

    /* Border Radius System */
    --radius-none: 0;
    --radius-xs: 0.125rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 50rem;

    /* Animation System */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
    --duration-slower: 500ms;

    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Z-Index System */
    --z-hide: -1;
    --z-base: 0;
    --z-docked: 10;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-banner: 1200;
    --z-overlay: 1300;
    --z-modal: 1400;
    --z-popover: 1500;
    --z-tooltip: 1600;
    --z-toast: 1700;
    --z-max: 2147483647;
}

/* =================================
   RESET & FOUNDATION
   ================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-neutral-100);
    background: var(--color-neutral-950);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Sophisticated Background Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 82, 204, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--color-neutral-950) 0%, var(--color-neutral-900) 100%);
    z-index: var(--z-hide);
    pointer-events: none;
}

/* =================================
   TYPOGRAPHY SYSTEM
   ================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-neutral-0);
    margin: 0;
}

.display-2xl { font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.display-xl { font-size: 3.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.display-lg { font-size: 3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.display-md { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.display-sm { font-size: 1.875rem; font-weight: 600; line-height: 1.3; }

.heading-xl { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.heading-lg { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.heading-md { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.heading-sm { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.heading-xs { font-size: 0.875rem; font-weight: 600; line-height: 1.5; }

.text-xl { font-size: 1.25rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-md { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-primary { color: var(--color-primary-400); }
.text-neutral-0 { color: var(--color-neutral-0); }
.text-neutral-100 { color: var(--color-neutral-100); }
.text-neutral-300 { color: var(--color-neutral-300); }
.text-neutral-400 { color: var(--color-neutral-400); }
.text-neutral-500 { color: var(--color-neutral-500); }

/* =================================
   LAYOUT SYSTEM
   ================================= */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* =================================
   PREMIUM COMPONENTS
   ================================= */

/* Ultra-Premium Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-soft);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--gradient-glass);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--gradient-glass);
}

/* Premium Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-neutral-0);
    box-shadow: var(--shadow-lg), var(--shadow-glow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: var(--glass-bg-strong);
    color: var(--color-neutral-100);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #00B946 100%);
    color: var(--color-neutral-0);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, #E8900A 100%);
    color: var(--color-neutral-0);
    box-shadow: var(--shadow-lg);
}

.btn-error {
    background: linear-gradient(135deg, var(--color-error) 0%, #E63939 100%);
    color: var(--color-neutral-0);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
    border-radius: var(--radius-2xl);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
    border-radius: var(--radius-lg);
}

/* Premium Navigation */
.navbar {
    background: var(--gradient-surface-dark);
    backdrop-filter: var(--glass-backdrop-strong);
    -webkit-backdrop-filter: var(--glass-backdrop-strong);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    min-height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-neutral-0);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar-logo:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow-soft);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    color: var(--color-neutral-300);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-soft);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
    color: var(--color-neutral-0);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--color-primary-300);
    background: var(--gradient-primary-soft);
    box-shadow: var(--shadow-md);
}

/* Premium Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-neutral-200);
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    color: var(--color-neutral-100);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 400;
    backdrop-filter: var(--glass-backdrop);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary-400);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12), var(--shadow-lg);
    background: var(--glass-bg-strong);
}

.form-control::placeholder {
    color: var(--color-neutral-500);
    font-weight: 400;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7785' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
    cursor: pointer;
}

/* Premium Tables */
.table-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    background: var(--gradient-primary-soft);
    padding: var(--space-4) var(--space-6);
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-neutral-200);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table td {
    padding: var(--space-4) var(--space-6);
    color: var(--color-neutral-200);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color var(--duration-normal) var(--ease-out);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Premium Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
}

.badge-primary {
    background: rgba(0, 102, 255, 0.16);
    color: var(--color-primary-300);
    border: 1px solid rgba(0, 102, 255, 0.24);
}

.badge-success {
    background: rgba(0, 200, 81, 0.16);
    color: #4AE097;
    border: 1px solid rgba(0, 200, 81, 0.24);
}

.badge-warning {
    background: rgba(255, 159, 0, 0.16);
    color: #FFB84D;
    border: 1px solid rgba(255, 159, 0, 0.24);
}

.badge-error {
    background: rgba(255, 68, 68, 0.16);
    color: #FF8A8A;
    border: 1px solid rgba(255, 68, 68, 0.24);
}

/* Premium Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.modal.show {
    display: flex;
    animation: modalFadeIn var(--duration-normal) var(--ease-out);
}

.modal-content {
    background: var(--gradient-surface-dark);
    backdrop-filter: var(--glass-backdrop-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-premium);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn var(--duration-normal) var(--ease-spring);
}

.modal-header {
    padding: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-neutral-0);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-neutral-400);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.modal-close:hover {
    color: var(--color-neutral-100);
    background: rgba(255, 255, 255, 0.08);
}

/* Alerts & Notifications */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    backdrop-filter: var(--glass-backdrop);
}

.alert-success {
    background: var(--color-success-light);
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background: var(--color-warning-light);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.alert-error {
    background: var(--color-error-light);
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-info {
    background: var(--color-info-light);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* =================================
   ANIMATIONS
   ================================= */

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--duration-slow) var(--ease-out);
}

.animate-slide-up {
    animation: slideUp var(--duration-slow) var(--ease-out);
}

.animate-scale-in {
    animation: scaleIn var(--duration-normal) var(--ease-spring);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* =================================
   UTILITIES
   ================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.z-hide { z-index: var(--z-hide); }
.z-base { z-index: var(--z-base); }
.z-modal { z-index: var(--z-modal); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

.select-none { user-select: none; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .navbar-content {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-6) 0;
    }

    .navbar-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .modal-content {
        margin: var(--space-4);
        border-radius: var(--radius-2xl);
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: var(--space-4);
    }

    .btn {
        padding: var(--space-3) var(--space-5);
    }

    .btn-lg {
        padding: var(--space-4) var(--space-6);
    }

    .form-control {
        padding: var(--space-3);
    }
}

@media (max-width: 480px) {
    .display-2xl { font-size: 2.5rem; }
    .display-xl { font-size: 2.25rem; }
    .display-lg { font-size: 2rem; }
    .display-md { font-size: 1.75rem; }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-6);
    }
}

/* =================================
   DARK MODE OPTIMIZATION
   ================================= */

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

/* =================================
   REDUCED MOTION
   ================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================================
   PRINT STYLES
   ================================= */

@media print {
    .navbar,
    .btn,
    .modal {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: white;
        color: black;
    }
}
