/* ServiceLink - Professional Modern Theme */
:root {
    /* Primary Colors - Deep Blue (Trust & Professionalism) */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-lighter: #60a5fa;
    
    /* Secondary Colors - Vibrant Orange (Energy & Action) */
    --secondary-orange: #f97316;
    --secondary-orange-dark: #ea580c;
    --secondary-orange-light: #fb923c;
    
    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-teal: #14b8a6;
    --accent-indigo: #6366f1;
    
    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-primary-hover: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    --gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-primary: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
    --shadow-secondary: 0 10px 25px -5px rgba(249, 115, 22, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--neutral-50);
    color: var(--neutral-800);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--neutral-200);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 72px;
    padding: 0 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
    letter-spacing: -0.02em;
}

.navbar-brand:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
    color: var(--neutral-700) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-xl);
    margin-top: 0.5rem;
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease;
    background: white;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    margin: 0.125rem 0;
    color: var(--neutral-700);
}

.dropdown-item:hover {
    background: var(--gradient-card);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--neutral-200);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Feature Cards */
.card {
    transition: all var(--transition-slow);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-blue-light);
}

.card-header {
    background: white;
    border-bottom: 2px solid var(--neutral-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.card-body {
    padding: 1.5rem;
}

.feature-icon {
    transition: transform var(--transition-slow);
    color: var(--primary-blue);
    font-size: 2.5rem;
}

.card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Service Items */
.service-item {
    transition: all var(--transition-slow);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--neutral-200);
}

.service-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    background: var(--gradient-card);
    border-color: var(--primary-blue-light);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    border: none;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -5px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-success {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-secondary);
}

.btn-success:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -5px rgba(249, 115, 22, 0.4);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-success {
    color: var(--secondary-orange);
    border: 2px solid var(--secondary-orange);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--gradient-secondary);
    border-color: var(--secondary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-300);
    padding: 0.625rem 0.875rem;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    background: white;
    color: var(--neutral-800);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Login/Register Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    padding: 2rem 0;
}

.auth-card {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    background: white;
}

.auth-header {
    background: var(--gradient-hero);
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.auth-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.auth-body {
    padding: 2.5rem;
}

/* Google Sign-in Button */
.btn-google {
    background: white;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-300);
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--neutral-700);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-lg);
    padding-bottom: 2rem;
    position: relative;
}

.dashboard-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.sidebar-nav {
    position: relative;
    z-index: 1;
    padding: 1.5rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    margin: 0.25rem 1rem;
    transition: all var(--transition-base);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.sidebar-nav .nav-link:hover::before {
    left: 100%;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--secondary-orange);
}

.sidebar-heading {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.5rem 1.25rem 0.75rem;
}

.dashboard-content {
    background: var(--neutral-50);
    min-height: 100vh;
}

/* Custom Scrollbar */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .dashboard-sidebar,
    #sidebarMenu {
        position: fixed !important;
        top: 72px !important;
        left: 0 !important;
        width: 280px !important;
        height: calc(100vh - 72px) !important;
        transform: translateX(-100%) !important;
        transition: transform var(--transition-slow) !important;
        z-index: 1040 !important;
        overflow-y: auto !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .dashboard-sidebar.show,
    #sidebarMenu.show {
        transform: translateX(0) !important;
    }
    
    .dashboard-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.5rem 1rem !important;
        padding-top: 90px !important;
    }
    
    .navbar {
        padding: 0.75rem 1rem !important;
        height: 72px !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        z-index: 1060 !important;
        background: var(--gradient-primary) !important;
        color: white !important;
        border: none !important;
        border-radius: var(--radius-md) !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 1.25rem !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(15, 23, 42, 0.5) !important;
        backdrop-filter: blur(4px);
        z-index: 1035 !important;
        display: none !important;
    }
    
    .sidebar-overlay.show {
        display: block !important;
    }
}

/* Desktop Sidebar */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .dashboard-sidebar {
        position: fixed;
        top: 72px;
        left: 0;
        width: 260px;
        height: calc(100vh - 72px);
        transform: translateX(0);
        z-index: 1040;
        overflow-y: auto;
    }
    
    .dashboard-content {
        margin-left: 260px;
        padding: 2rem 2.5rem;
        padding-top: 100px;
    }
}

/* Ticket Cards */
.ticket-card {
    border-left: 4px solid var(--primary-blue);
    transition: all var(--transition-slow);
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--neutral-200);
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-left-width: 6px;
}

.priority-low {
    border-left-color: var(--success);
}

.priority-medium {
    border-left-color: var(--warning);
}

.priority-high {
    border-left-color: var(--secondary-orange);
}

.priority-emergency {
    border-left-color: var(--danger);
}

/* Status Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.bg-primary { 
    background: var(--gradient-primary) !important;
    color: white;
}

.bg-success { 
    background: var(--gradient-secondary) !important;
    color: white;
}

.bg-warning { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white;
}

.bg-danger { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white;
}

.bg-info { 
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white;
}

.bg-secondary { 
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white;
}

/* Chat/Comments */
.chat-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    background: white;
}

.chat-message {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
    transition: all var(--transition-base);
}

.chat-message:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.chat-message.own {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    margin-left: 15%;
    border-left: 3px solid var(--primary-blue);
}

.chat-message.other {
    background: var(--neutral-100);
    margin-right: 15%;
    border-left: 3px solid var(--neutral-300);
}

/* Tables */
.table {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.table tbody tr {
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--neutral-200);
}

.table tbody tr:hover {
    background: var(--gradient-card);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

/* Alerts */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-info {
    background: var(--info-light);
    color: #164e63;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background: var(--warning-light);
    color: #78350f;
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: var(--radius-full);
    background: var(--neutral-200);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Modal Customization */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

/* File Upload */
.file-upload-area {
    border: 3px dashed var(--neutral-300);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    background: white;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-card);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.file-upload-area.dragover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: scale(1.02);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--success) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-success {
    background: var(--gradient-secondary) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.shadow-primary {
    box-shadow: var(--shadow-primary) !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-12px); 
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-300) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar (Chat) */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-full);
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary-hover);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 4rem 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .auth-body {
        padding: 1.5rem;
    }
    
    .auth-header {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-control, .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .dashboard-sidebar,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }
    
    .dashboard-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}

/* Dark Mode Support (Optional - Add if needed) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}