/* =====================================
   style.css - ملف الأنماط العام لموقع جامعة مؤتة
   تصميم حديث وعصري - الإصدار 3.0 (الموحد)
   ===================================== */

/* ========== استيراد الخطوط ========== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* ========== المتغيرات العامة ========== */
:root {
    /* الألوان الرئيسية */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: #a78bfa;
    --accent: #f59e0b;
    
    /* ألوان الحالات */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* ألوان الخلفيات والنصوص */
    --bg-gradient-start: #eff6ff;
    --bg-gradient-end: #eef2ff;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #1f2937;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* ألوان الحدود */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* الأبعاد */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    
    /* الظلال */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    
    /* التحولات */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* الخطوط */
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
}

/* ========== إعادة تعيين الأنماط ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== الحاوية الرئيسية ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== أنماط الرأس ========== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    background: white;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.logo-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-text h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    color: white;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.header-buttons button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== أنماط الأزرار العامة ========== */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-withdraw {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.btn-withdraw:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.btn-withdraw:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-print {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(75, 85, 99, 0.3);
}

.btn-print:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(75, 85, 99, 0.4);
}

.btn-sm {
    padding: 6px 14px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
    min-width: 160px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    min-width: 180px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.4);
}

.btn-replace {
    background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-replace:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-sync {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-sync:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-drop {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-drop:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ========== أنماط لوحة المعلومات ========== */
.dashboard {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 28px;
    background: transparent;
    min-height: 600px;
}

/* ========== أنماط القائمة الجانبية ========== */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.user-profile {
    text-align: center;
    padding: 24px 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.user-avatar {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 2.8rem;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.user-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.user-id {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    width: fit-content;
    margin: 0 auto;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.sidebar-menu i {
    width: 24px;
    text-align: center;
    font-size: var(--font-size-lg);
}

.sidebar-menu .logout-item {
    margin-top: 24px;
    border-top: 2px solid var(--border-light);
    padding-top: 16px;
}

.sidebar-menu .logout-item a {
    color: var(--danger);
}

.sidebar-menu .logout-item a:hover {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    color: white;
}

/* ========== أنماط المحتوى الرئيسي ========== */
.main-content {
    padding: 32px 0;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 32px;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== أنماط رأس الصفحة ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-info-badge {
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: transparent;
    padding: 0;
}

.info-item i {
    color: var(--primary);
    font-size: var(--font-size-lg);
}

/* ========== أنماط التنبيهات ========== */
.alert {
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 6px solid;
    animation: slideInRight 0.4s ease;
    box-shadow: var(--shadow-md);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-right-color: var(--success);
}

.alert-info {
    background: var(--info-light);
    color: var(--primary-dark);
    border-right-color: var(--primary);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-right-color: var(--warning);
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border-right-color: var(--danger);
}

/* ========== أنماط البطاقات ========== */
.section-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 25px 0 15px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
    font-size: var(--font-size-2xl);
}

/* ========== أنماط بطاقات الإحصائيات ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card i {
    position: absolute;
    left: 20px;
    bottom: 20px;
    font-size: 4rem;
    opacity: 0.2;
    color: white;
}

.stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-desc {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

/* ألوان بطاقات الإحصائيات */
.stat-card:nth-child(1) { background: linear-gradient(135deg, #1a4f8b 0%, #3a7cbd 100%); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.balance-positive {
    color: #ff4444;
    font-weight: 700;
}

.balance-negative {
    color: #00C851;
    font-weight: 700;
}

/* ========== أنماط الجداول ========== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.data-table th {
    padding: 16px 20px;
    font-weight: 600;
    text-align: center;
    font-size: var(--font-size-sm);
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    vertical-align: middle;
    font-size: var(--font-size-sm);
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* أنماط متحركة للجداول */
.data-table tbody tr {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.5s; }

/* ========== أنماط الشارات ========== */
.course-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    background: var(--info-light);
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    display: inline-block;
    font-size: var(--font-size-sm);
    border: 1px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.section-badge {
    background: var(--warning-light);
    color: #92400e;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    display: inline-block;
    border: 1px solid #fcd34d;
    box-shadow: var(--shadow-sm);
}

.hall-badge {
    background: var(--success-light);
    color: #065f46;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    display: inline-block;
    border: 1px solid #6ee7b7;
    box-shadow: var(--shadow-sm);
}

.time-badge {
    background: var(--info-light);
    color: #3730a3;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    display: inline-block;
    border: 1px solid #a5b4fc;
    box-shadow: var(--shadow-sm);
}

.day-badge {
    background: var(--danger-light);
    color: #9f1239;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: inline-block;
    margin: 2px;
    border: 1px solid #fda4af;
    box-shadow: var(--shadow-sm);
}

.serial-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* ========== أنماط الشارات العامة ========== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-primary {
    background: var(--info-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

.badge-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-danger {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge-info {
    background: #cffafe;
    color: #0e7490;
    border: 1px solid #67e8f9;
}

.badge-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #9ca3af;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    min-width: 90px;
    text-align: center;
}

.status-pending {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-approved {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-rejected {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========== أنماط النماذج ========== */
.form-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.form-label i {
    color: var(--primary);
    margin-left: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    background: white;
    font-family: var(--font-family);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
}

.form-control[readonly] {
    background-color: var(--bg-light);
    cursor: not-allowed;
    border-color: var(--border-medium);
}

.form-control[type="text"] {
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* أنماط حقل الاختيار */
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 16px center;
    background-size: 20px;
    padding-left: 48px;
}

.form-select:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* أنماط الحقول المخصصة */
.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    transition: color var(--transition-base);
}

.input-wrapper input:focus + i {
    color: var(--primary);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-group .form-control {
    flex: 1;
}

.input-group-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 14px 20px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

/* ========== أنماط خدمة العلم ========== */
.military-service-card {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.military-service-icon {
    font-size: 2em;
    opacity: 0.9;
}

.military-service-content {
    flex: 1;
}

.military-service-title {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.military-service-date {
    font-size: 1.3em;
    font-weight: bold;
}

.military-service-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: var(--border-radius-full);
    font-size: 0.9em;
}

/* ========== أنماط الملاحظات ========== */
.notes-section {
    margin: 25px 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.note-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.note-card.registration {
    border-right: 4px solid #3498db;
}

.note-card.financial {
    border-right: 4px solid #e74c3c;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.note-header i {
    font-size: 1.5em;
}

.note-header.registration i {
    color: #3498db;
}

.note-header.financial i {
    color: #e74c3c;
}

.note-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-primary);
}

.note-item {
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-text {
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.5;
}

.note-date {
    font-size: 0.8em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.note-date i {
    font-size: 0.9em;
    color: var(--text-light);
}

.empty-notes {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
}

.empty-notes i {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--border-medium);
}

/* ========== أنماط الروابط السريعة ========== */
.quick-links-section-bottom {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.quick-links-section-bottom .section-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
}

.quick-links-section-bottom .quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.quick-links-section-bottom .quick-link-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.quick-links-section-bottom .quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.quick-links-section-bottom .quick-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
    transition: all var(--transition-base);
}

.quick-links-section-bottom .quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(360deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.quick-links-section-bottom .quick-link-title {
    font-weight: 700;
    font-size: var(--font-size-base);
}

.quick-links-section-bottom .quick-link-desc {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ========== أنماط الحالة الفارغة ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 5rem;
    color: var(--border-medium);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.empty-state h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: var(--font-size-base);
}

/* ========== أنماط الإجراءات السريعة ========== */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 28px;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.navigation-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
}

/* ========== أنماط بطاقات المعلومات ========== */
.info-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.info-stat-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.info-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--info-light) 0%, #ede9fe 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.stat-content h4 {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-content p {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.info-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.info-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--info-light) 0%, #ede9fe 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.2rem;
    box-shadow: var(--shadow-md);
}

.info-content h4 {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-content p {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

/* ========== أنماط النوافذ المنبثقة ========== */
.sync-modal,
.replace-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleIn 0.3s ease forwards;
}

.modal-content-large {
    max-width: 900px;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: transform var(--transition-base);
}

.close-modal:hover {
    transform: scale(1.2) rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.modal-course-info {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: var(--font-size-sm);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 700;
    color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    justify-content: flex-end;
}

/* ========== أنماط العداد التنازلي ========== */
.countdown-timer {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    background: var(--warning-light);
    padding: 8px 20px;
    border-radius: var(--border-radius-full);
    display: inline-block;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

/* ========== أنماط مربعات التحذير والملاحظات ========== */
.warning-box {
    background: var(--warning-light);
    border: 1px solid #fcd34d;
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #92400e;
    box-shadow: var(--shadow-md);
    border-right: 6px solid var(--warning);
}

.warning-box i {
    font-size: 2rem;
    color: var(--warning);
}

.note-box {
    background: var(--info-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    border-right: 6px solid var(--primary);
}

.note-box i {
    font-size: 2rem;
    color: var(--primary);
}

/* ========== أنماط شريط الإعلانات المتحرك ========== */
.marquee-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius-full);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.marquee-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.marquee-container marquee {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ========== أنماط بطاقة التحويل الحالي ========== */
.current-transfer-card {
    background: var(--warning-light);
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
    border-right: 6px solid var(--warning);
}

.current-transfer-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.current-transfer-content {
    flex: 1;
}

.current-transfer-label {
    color: #856404;
    font-size: var(--font-size-xs);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-transfer-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #856404;
    line-height: 1.2;
}

/* ========== أنماط بطاقة معلومات الطالب ========== */
.student-info-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4fd 100%);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.student-info-card .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    background: transparent;
    padding: 0;
}

.student-info-card .info-item i {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-light);
}

.student-info-card .info-label {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    margin-bottom: 4px;
    font-weight: 500;
}

.student-info-card .info-value {
    font-weight: 700;
    color: var(--primary);
    font-size: var(--font-size-base);
}

/* ========== أنماط التذييل ========== */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #111827 100%);
    color: white;
    padding: 24px 0;
    margin-top: 48px;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition-base);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-content {
    text-align: center;
    color: #e5e7eb;
    font-size: var(--font-size-sm);
}

/* ========== أنماط صفحة تسجيل الخروج ========== */
.logout-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logout-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.6s ease;
    border: 1px solid var(--border-light);
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease;
}

.logout-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logout-message {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: var(--font-size-lg);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: var(--border-radius-full);
    margin: 32px 0;
    overflow: hidden;
    box-shadow: var(--shadow-inner);
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: progress 3s linear forwards;
    transform-origin: left;
}

@keyframes progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.redirect-message {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    margin-bottom: 24px;
}

.redirect-message i {
    color: var(--primary);
    margin-left: 8px;
}

.links-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ========== أنماط صفحة تسجيل الدخول ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.university-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.login-header .logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    background: white;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.login-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

.login-tagline {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.login-body {
    padding: 40px 30px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
    transition: color var(--transition-base);
}

.form-control:focus + .input-icon {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 3;
    transition: color var(--transition-base);
}

.password-toggle:hover {
    color: var(--primary);
}

.attempts-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 12px;
    background: var(--warning-light);
    border-radius: var(--border-radius-lg);
    border-right: 4px solid var(--warning);
    font-size: var(--font-size-sm);
}

.attempts-count {
    color: var(--warning);
    font-weight: bold;
    background: rgba(255, 193, 7, 0.2);
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
}

/* ========== أنماط CAPTCHA ========== */
.captcha-container {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.captcha-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-display {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: var(--text-primary);
    user-select: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.captcha-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.captcha-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-align: center;
    direction: ltr;
    transition: all var(--transition-base);
}

.captcha-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.captcha-refresh-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.captcha-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.captcha-status {
    font-size: var(--font-size-sm);
    text-align: center;
    margin-top: 8px;
    min-height: 30px;
    padding: 8px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.captcha-correct {
    color: var(--success);
    background: var(--success-light);
    border: 1px solid #6ee7b7;
}

.captcha-incorrect {
    color: var(--danger);
    background: var(--danger-light);
    border: 1px solid #fca5a5;
}

/* ========== أنماط الأمان ========== */
.security-features {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.security-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-list {
    list-style: none;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.security-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-list i {
    color: var(--success);
    font-size: var(--font-size-sm);
}

.security-warning {
    font-size: var(--font-size-xs);
    color: var(--danger);
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ========== تحميل الشاشة ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-light);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== تأثيرات إضافية ========== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%) rotate(30deg);
    }
    to {
        transform: translateX(100%) rotate(30deg);
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== تخصيص شريط التمرير ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

/* ========== أنماط الطباعة ========== */
@media print {
    .header, .sidebar, .footer, .quick-links-section-bottom,
    .user-actions, .quick-actions, .action-buttons, .form-card,
    .note-box, .warning-box, .sync-modal, .replace-modal,
    .info-stats, .marquee-container, .current-transfer-card,
    .student-info-card, .navigation-links, .security-features,
    .captcha-container, .loading-overlay, .btn {
        display: none !important;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .content {
        box-shadow: none;
        padding: 0;
        background: white;
    }
    
    .data-table th {
        background: #f0f0f0 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .section-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========== أنماط الاستجابة للشاشات المختلفة ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .dashboard {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-info-badge {
        flex-direction: column;
        width: 100%;
    }
    
    .info-item {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-section-bottom .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .info-stats {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        width: 100%;
    }
    
    .input-group-text {
        width: 100%;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .navigation-links {
        flex-direction: column;
    }
    
    .current-transfer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .current-transfer-icon {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .content {
        padding: 20px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quick-links-section-bottom .quick-links-grid {
        gap: 12px;
    }
    
    .quick-links-section-bottom .quick-link-card {
        padding: 16px;
    }
    
    .section-card {
        padding: 16px;
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .logout-card {
        padding: 32px 20px;
    }
    
    .logout-title {
        font-size: var(--font-size-2xl);
    }
    
    .links-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .captcha-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .student-info-badge {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-info-card .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .captcha-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quick-links-section-bottom .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}