/* ============================================================================
   النظام الوطني الموحد لحصر وتوثيق البنية التحتية والموارد الأكاديمية بالجامعات الليبية
   L-HEIRMS Executive Institutional Theme & Styling
   ============================================================================ */

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

:root {
    --primary-color: #004d3d;
    --primary-dark: #00362b;
    --primary-light: #006b54;
    --gold-accent: #c29b38;
    --gold-dark: #9e7a25;
    --gold-light: #e5bd57;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --info: #0284c7;
}

* {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism & Executive Cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.dark .glass-panel {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Institutional Gradient Header */
.gov-gradient {
    background: linear-gradient(135deg, #00382b 0%, #004d3d 50%, #086650 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, #9e7a25 0%, #c29b38 50%, #e5bd57 100%);
}

/* Modern Tab Navigation */
.nav-tab-btn {
    transition: all 0.25s ease-in-out;
    position: relative;
}

.nav-tab-btn.active {
    background-color: #004d3d;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 77, 61, 0.25);
}

.nav-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #c29b38;
    border-radius: 9999px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Metric Pulse Badges */
.pulse-badge {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

/* Interactive Quick Login Badges */
.quick-role-badge {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 77, 61, 0.15);
}

.quick-role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 61, 0.15);
    border-color: #004d3d;
    background-color: #f0fdf4;
}

/* Data Table Clean Styling */
.executive-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 14px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.executive-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    vertical-align: middle;
}

.executive-table tr:hover td {
    background-color: #f8fafc;
}

/* Print & Cabinet Official Submissions */
@media print {
    * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }

    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    /* دعم طباعة النوافذ المنبثقة (Modals) بشكل نظيف وكامل متعدد الصفحات */
    body.printing-modal #loginView,
    body.printing-modal #appView,
    body.printing-modal .fixed.inset-0:not(.print-target-modal) {
        display: none !important;
    }

    body.printing-modal .print-target-modal {
        position: static !important;
        inset: auto !important;
        background: #ffffff !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    body.printing-modal .print-target-modal > div {
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .glass-panel {
        background: transparent !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .official-header {
        border-bottom: 2px solid #004d3d;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
}

.print-only {
    display: none;
}
