/**
 * AUTO TESTER - Unified CSS Framework
 * Description: Complete unified styles for the entire system
 * Version: 2.0.0
 * Author: AUTO TESTER Team
 */

/* ========================================
   CSS Variables - Complete System
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #002b5c;
    --primary-dark: #001f44;
    --primary-light: #004481;
    --secondary: #ffd700;
    --secondary-dark: #e6c200;
    --secondary-light: #fff3cd;
    
    /* Status Colors */
    --success: #28a745;
    --success-light: #d4edda;
    --success-dark: #1e7e34;
    
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --danger-dark: #bd2130;
    
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --warning-dark: #d39e00;
    
    --info: #17a2b8;
    --info-light: #d1ecf1;
    --info-dark: #117a8b;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --text-black: #000000;
    
    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0a0a0f;
    --bg-gray: #e2e8f0;
    --bg-primary-light: rgba(0, 43, 92, 0.1);
    --bg-secondary-light: rgba(255, 215, 0, 0.1);
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-color-dark: #cbd5e0;
    --border-color-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 43, 92, 0.1);
    --shadow-primary: 0 5px 20px rgba(0, 43, 92, 0.3);
    --shadow-secondary: 0 5px 20px rgba(255, 215, 0, 0.3);
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-circle: 50%;
    --border-radius-pill: 50px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Fonts */
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --font-secondary: 'Tajawal', 'Cairo', sans-serif;
    --font-number: 'Orbitron', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.75rem;
    --font-size-6xl: 4.5rem;
    
    /* Spacing */
    --spacing-0: 0;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    --spacing-32: 8rem;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #004481;
    --primary-dark: #003366;
    --primary-light: #0a5c9e;
    
    --text-dark: #e0e0e0;
    --text-gray: #b0b0b0;
    --text-light: #808080;
    
    --bg-light: #1a1a2e;
    --bg-white: #16213e;
    --bg-dark: #0f0f1f;
    
    --border-color: #2a2a3a;
    
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-4);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-3) * -1);
}

.col {
    flex: 1;
    padding: 0 var(--spacing-3);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-4);
}

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

/* ========================================
   Navigation & Header
   ======================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    padding: var(--spacing-4) var(--spacing-6);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-xl);
    font-weight: 900;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-4);
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 215, 0, 0.2);
}

.nav-links a i {
    color: var(--secondary);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 700;
    font-size: var(--font-size-base);
}

.user-role {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    min-width: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: var(--spacing-3) var(--spacing-4);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: var(--spacing-3) var(--spacing-6);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    text-decoration: none;
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.btn-success {
    background: var(--success);
    color: var(--text-white);
}

.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-white);
}

.btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-dark);
}

.btn-warning:hover {
    background: var(--warning-dark);
    transform: translateY(-2px);
}

.btn-info {
    background: var(--info);
    color: var(--text-white);
}

.btn-info:hover {
    background: var(--info-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-2);
    color: var(--primary);
    font-weight: 600;
}

.form-group label i {
    color: var(--secondary);
    margin-left: var(--spacing-1);
}

.form-control {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
    padding-left: 45px;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-6);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-2);
    border-bottom: 2px solid var(--border-color);
}

.card-header h2,
.card-header h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.card-header i {
    color: var(--secondary);
}

.card-body {
    margin-bottom: var(--spacing-4);
}

.card-footer {
    padding-top: var(--spacing-4);
    border-top: 2px solid var(--border-color);
}

/* ========================================
   Tables
   ======================================== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
}

th {
    padding: var(--spacing-4);
    text-align: center;
    font-weight: 600;
}

td {
    padding: var(--spacing-4);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--bg-light);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--border-radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

.badge-primary {
    background: var(--primary);
    color: var(--text-white);
}

.badge-secondary {
    background: var(--secondary);
    color: var(--primary);
}

/* ========================================
   Progress Bars
   ======================================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-1);
    font-size: var(--font-size-xs);
    color: var(--text-gray);
}

/* ========================================
   Tabs
   ======================================== */
.tabs {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-6);
    flex-wrap: wrap;
}

.tab {
    padding: var(--spacing-2) var(--spacing-6);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--text-gray);
}

.tab:hover {
    border-color: var(--secondary);
    color: var(--primary);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border-color: transparent;
}

.tab.active i {
    color: var(--secondary);
}

.tab i {
    color: var(--secondary);
}

/* ========================================
   Modals
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    padding: var(--spacing-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--text-white);
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--spacing-6);
}

.modal-footer {
    display: flex;
    gap: var(--spacing-3);
    justify-content: flex-end;
    padding: var(--spacing-4);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--border-radius-pill);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    animation: slideDown 0.3s ease;
}

.toast-success {
    background: var(--success-light);
    color: var(--success);
    border: 2px solid var(--success);
}

.toast-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.toast-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 2px solid var(--warning);
}

.toast-info {
    background: var(--info-light);
    color: var(--info);
    border: 2px solid var(--info);
}

.toast-hide {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ========================================
   Loading States
   ======================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-container {
    text-align: center;
    padding: var(--spacing-8);
}

.loader-container .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--secondary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-4);
    animation: spin 1s linear infinite;
}

/* ========================================
   Error & Empty States
   ======================================== */
.error-container,
.empty-container {
    text-align: center;
    padding: 60px 20px;
}

.error-container i,
.empty-container i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-4);
}

.error-container h3,
.empty-container h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-2);
}

.error-container p,
.empty-container p {
    color: var(--text-gray);
}

.btn-retry {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-2) var(--spacing-6);
    border-radius: var(--border-radius-pill);
    margin-top: var(--spacing-4);
    cursor: pointer;
    transition: var(--transition);
}

.btn-retry:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-logo {
    font-size: var(--font-size-xl);
    font-weight: 900;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.footer-logo span {
    color: var(--secondary);
}

.footer-about p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-3);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-3);
    color: var(--text-light);
}

.contact-info i {
    color: var(--secondary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: var(--spacing-3);
    margin-top: var(--spacing-4);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--spacing-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--spacing-4);
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--spacing-8);
}

/* ========================================
   Notification Bell
   ======================================== */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: var(--font-size-lg);
    transition: var(--transition);
}

.notification-bell:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: var(--secondary);
    color: var(--primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: var(--container-lg);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: var(--container-md);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: var(--container-sm);
        padding: 0 var(--spacing-4);
    }
    
    .navbar {
        padding: var(--spacing-3);
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-3);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-menu {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .user-info {
        display: none;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
        justify-content: center;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: var(--bg-white);
        padding: 20px;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

.slide-down {
    animation: slideDown 0.3s ease;
}

.bounce {
    animation: bounce 0.5s ease;
}

@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);
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

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

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }

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

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.pt-1 { padding-top: var(--spacing-1); }
.pt-2 { padding-top: var(--spacing-2); }
.pt-3 { padding-top: var(--spacing-3); }
.pt-4 { padding-top: var(--spacing-4); }
.pb-1 { padding-bottom: var(--spacing-1); }
.pb-2 { padding-bottom: var(--spacing-2); }
.pb-3 { padding-bottom: var(--spacing-3); }
.pb-4 { padding-bottom: var(--spacing-4); }

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

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

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-circle { border-radius: var(--border-radius-circle); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-light { color: var(--text-light); }
.text-white { color: var(--text-white); }
.text-dark { color: var(--text-dark); }

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-bold { font-weight: 700; }
.font-weight-bolder { font-weight: 900; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.transition-none { transition: none; }
.transition-fast { transition: var(--transition-fast); }
.transition { transition: var(--transition); }
.transition-slow { transition: var(--transition-slow); }
