/* =========================================================================
   نظام التنسيق البصري الفاخر لشركة الصدارة لتقديم الوجبات - Sadara HR System
   تصميم زجاجي عصري (Glassmorphism) - متجاوب بالكامل مع تركيز Mobile-First
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    /* لوحة الألوان الراقية */
    --primary: #cda851;
    --primary-light: #e5c16e;
    --primary-dark: #b5923c;
    --primary-glow: rgba(205, 168, 81, 0.15);
    
    --bg-dark: #0a0e17;
    --bg-card: rgba(22, 30, 49, 0.7);
    --bg-card-hover: rgba(30, 41, 67, 0.8);
    --bg-glass: rgba(10, 14, 23, 0.5);
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(205, 168, 81, 0.25);
    
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* حالات الحضور والمهام */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    /* التأثيرات والظلال */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 8px 25px rgba(205, 168, 81, 0.2);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================================================
   التنسيق العام والتهيئة
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(205, 168, 81, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================================================================
   شاشة تسجيل الدخول (Login Page Layout)
   ========================================================================= */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.brand-header {
    margin-bottom: 35px;
}

.brand-logo {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-logo span {
    color: #fff;
    font-weight: 400;
}

.brand-tagline {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* مدخلات النماذج الفاخرة */
.form-group {
    margin-bottom: 24px;
    text-align: right;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
    padding-right: 4px;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 48px 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(10, 14, 23, 0.8);
}

.form-input:focus + i {
    color: var(--primary-light);
    text-shadow: 0 0 8px var(--primary);
}

/* الأزرار المذهلة */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(205, 168, 81, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

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

.btn-primary:active {
    transform: translateY(0);
}

/* =========================================================================
   تخطيط التطبيق الرئيسي بعد الدخول (App Layout)
   ========================================================================= */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 1. القائمة الجانبية للأجهزة المكتبية (Sidebar) */
.sidebar {
    width: 280px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-light);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 10px;
    margin-bottom: 40px;
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

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

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

.user-role {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.menu-item a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-item a:hover, 
.menu-item.active a {
    color: #fff;
    background: rgba(205, 168, 81, 0.1);
    box-shadow: inset 3px 0 0 var(--primary);
}

.menu-item.active a i {
    color: var(--primary);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* 2. منطقة المحتوى الرئيسية (Main Content Area) */
.main-content {
    flex-grow: 1;
    margin-right: 280px; /* لترك مساحة للشريط الجانبي المكتبي */
    padding: 40px;
    min-height: 100vh;
    padding-bottom: 60px;
    transition: var(--transition);
}

/* شريط التنقل العلوي (Top Header Bar) */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.header-title h1 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
}

/* شريط التنقل السفلي للأجهزة المحمولة (Bottom Navigation Bar) */
.bottom-nav {
    display: none; /* مخفي افتراضياً على شاشات سطح المكتب */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    transition: var(--transition);
    position: relative;
    padding: 8px;
    width: 20%;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

/* =========================================================================
   تصاميم المكونات (Cards, Buttons, Tables)
   ========================================================================= */

/* صفحات العرض المختلفة */
.page-view {
    display: none; /* يتم التحكم بالظهور بالـ JS */
    animation: fadeIn 0.4s ease-in-out;
}

.page-view.active-view {
    display: block;
}

/* البطاقة الفاخرة (Glassmorphism Card) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
}

/* شبكة الإحصائيات (Stats Grid) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.primary { background: var(--primary-glow); color: var(--primary); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }

.stat-details {
    text-align: right;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================================================
   عنصر الحضور والنبض الجغرافي (Pulsing Location & Clock Button)
   ========================================================================= */
.clock-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.clock-timer {
    font-size: 42px;
    font-weight: 800;
    font-family: monospace;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.clock-date {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.clock-btn-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
}

/* نبض رادار الـ GPS */
.radar-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--primary-glow);
    animation: radarPulse 2s infinite ease-out;
    pointer-events: none;
    z-index: 0;
}

.radar-pulse:nth-child(2) {
    animation-delay: 0.6s;
}

.radar-pulse:nth-child(3) {
    animation-delay: 1.2s;
}

.clock-btn {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--border-gold);
    background: radial-gradient(circle, var(--bg-card-hover) 0%, rgba(10, 14, 23, 0.9) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    gap: 8px;
    outline: none;
}

.clock-btn:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(205, 168, 81, 0.4);
}

.clock-btn i {
    font-size: 38px;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.clock-btn span {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.clock-btn small {
    font-size: 11px;
    color: var(--text-muted);
}

.location-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.location-indicator i {
    color: var(--primary);
}

.location-indicator.success {
    color: var(--success);
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.2);
}
.location-indicator.success i { color: var(--success); }

/* =========================================================================
   النماذج وجداول البيانات (Tables & Forms)
   ========================================================================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: #fff;
    white-space: nowrap;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* شارات الحالة (Badge Styles) */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge.present { background: var(--success-bg); color: var(--success); }
.badge.late { background: var(--warning-bg); color: var(--warning); }
.badge.absent { background: var(--danger-bg); color: var(--danger); }
.badge.pending { background: var(--warning-bg); color: var(--warning); }
.badge.completed { background: var(--success-bg); color: var(--success); }
.badge.progress { background: var(--info-bg); color: var(--info); }
.badge.rejected { background: var(--danger-bg); color: var(--danger); }

/* أزرار العمليات الصغيرة (Icon Buttons) */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.03);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.btn-icon:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon.danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

/* =========================================================================
   نظام الفلاتر والتقارير الاحترافية (Filters & Reports View)
   ========================================================================= */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.select-input, .date-input {
    width: 100%;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.select-input:focus, .date-input:focus {
    border-color: var(--primary);
}

.select-input option {
    background: var(--bg-dark);
    color: #fff;
}

.report-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-report {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.03);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-report:hover {
    background: rgba(255,255,255,0.07);
}

.btn-report.excel {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-report.excel:hover {
    background: rgba(16, 185, 129, 0.25);
}

.btn-report.pdf {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-report.pdf:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* =========================================================================
   النوافذ المنبثقة الفاخرة (Modals)
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
}

/* =========================================================================
   تأثيرات الحركات الحيوية (Animations)
   ========================================================================= */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================================================
   التجاوب البرمجي ومواءمة الهواتف الذكية (Responsive Styles)
   ========================================================================= */

@media (max-width: 1024px) {
    /* إخفاء القائمة الجانبية في الشاشات اللوحية والمحمولة */
    .sidebar {
        transform: translateX(100%);
        pointer-events: none;
        width: 0;
        padding: 0;
        border: none;
    }
    
    .main-content {
        margin-right: 0 !important;
        padding: 20px;
        padding-bottom: 95px; /* مساحة لشريط التنقل السفلي */
    }
    
    .top-header {
        margin-bottom: 25px;
    }
    
    .top-header .sidebar-toggle {
        display: block !important;
    }
    
    .bottom-nav {
        display: flex; /* إظهار شريط التحضير والتنقل السفلي */
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .clock-timer {
        font-size: 34px;
    }
    
    .clock-btn-container, .clock-btn, .radar-pulse {
        width: 150px;
        height: 150px;
    }
    
    .clock-btn i {
        font-size: 32px;
    }
    
    .clock-btn span {
        font-size: 14px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .custom-table th, .custom-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .top-header h1 {
        font-size: 20px;
    }
}

/* =========================================================================
   تنسيق التبويبات وبطاقات الدخول السريع والفلاتر (Login Tabs & Quick Login Styles)
   ========================================================================= */
.login-tabs {
    display: flex;
    background: rgba(10, 14, 23, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 5px;
    margin-bottom: 25px;
    gap: 5px;
}

.login-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.login-tab.active {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.login-tab:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.login-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    max-width: 900px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideUp 0.7s ease;
}

.quick-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.quick-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.quick-login-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.quick-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-card-item:hover {
    background: rgba(205, 168, 81, 0.08);
    border-color: var(--border-gold);
    transform: translateX(-5px);
}

.quick-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-dark);
}

.quick-avatar.color-1 { background: #f59e0b; }
.quick-avatar.color-2 { background: #10b981; }
.quick-avatar.color-3 { background: #3b82f6; }

.quick-info {
    flex-grow: 1;
}

.quick-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.quick-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.quick-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition);
}

.quick-card-item:hover .quick-arrow {
    color: var(--primary);
    transform: translateX(-3px);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.report-table-view {
    animation: fadeIn 0.3s ease-in-out;
}

/* =========================================================================
   تنسيق التقارير عند الطباعة وتصدير الـ PDF (Print Stylesheet)
   ========================================================================= */
#print-reports-container {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    #print-reports-container, #print-reports-container * {
        visibility: visible;
    }
    
    #print-reports-container {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff !important;
        color: #000 !important;
        font-family: 'Cairo', 'Tajawal', sans-serif;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 3px double #cda851;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .print-header h2 {
        margin: 0 0 5px 0;
        color: #1e293b;
        font-size: 20px;
        font-weight: 800;
    }
    
    .print-header span {
        color: #64748b;
        font-size: 12px;
    }
    
    .crown-box {
        text-align: center;
        border: 2px solid #cda851;
        padding: 5px 12px;
        border-radius: 8px;
    }
    
    .print-title-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 10px 15px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    .print-title-bar h3 {
        margin: 0;
        color: #0f172a;
        font-size: 16px;
        font-weight: 700;
    }
    
    .print-meta-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .print-meta-table th {
        background: #f1f5f9;
        color: #334155;
        font-weight: 700;
        text-align: right;
        padding: 8px 12px;
        font-size: 12px;
        border: 1px solid #e2e8f0;
        width: 15%;
    }
    
    .print-meta-table td {
        padding: 8px 12px;
        font-size: 12px;
        border: 1px solid #e2e8f0;
        width: 35%;
        color: #0f172a;
    }
    
    .print-table-wrapper {
        margin-bottom: 30px;
    }
    
    .print-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .print-table-wrapper th {
        background: #0f172a !important;
        color: #fff !important;
        font-weight: 700;
        padding: 10px;
        font-size: 11px;
        border: 1px solid #334155;
        text-align: right;
    }
    
    .print-table-wrapper td {
        padding: 10px;
        font-size: 11px;
        border: 1px solid #cbd5e1;
        color: #0f172a;
    }
    
    .print-table-wrapper tr:nth-child(even) td {
        background: #f8fafc;
    }
    
    .print-summary-metrics {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 40px;
        page-break-inside: avoid;
    }
    
    .print-summary-metrics .metric {
        flex: 1;
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .print-summary-metrics .metric .lbl {
        font-size: 12px;
        color: #64748b;
        font-weight: 600;
    }
    
    .print-summary-metrics .metric .val {
        font-size: 16px;
        color: #0f172a;
        font-weight: 800;
    }
    
    .print-footer-signatures {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 50px;
        page-break-inside: avoid;
    }
    
    .sig-block {
        flex: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .sig-block h4 {
        margin: 0;
        font-size: 13px;
        color: #334155;
    }
    
    .sig-line {
        height: 1px;
        background: #cbd5e1;
        margin: 15px auto 5px auto;
        width: 80%;
    }
    
    .sig-block span {
        font-size: 11px;
        color: #64748b;
    }
    
    .stamps {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .stamp-circle {
        width: 100px;
        height: 100px;
        border: 2px dashed #cda851;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #cda851;
        font-size: 10px;
        font-weight: 700;
        transform: rotate(-15deg);
        opacity: 0.8;
    }
    
    .badge {
        border: 1px solid #cbd5e1 !important;
        background: none !important;
        color: #0f172a !important;
        padding: 2px 8px !important;
    }
}

