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

        body {
            font-family: 'Cairo', sans-serif;
            margin: 0;
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .glass-sidebar {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(15px);
            border-left: 3px solid #38bdf8;
        }

        .dark .glass-sidebar {
            background: #0d0d0d;
            border-left: 3px solid #38bdf8;
            box-shadow: -15px 0 40px -20px rgba(56, 189, 248, 0.18);
        }

        .stat-card {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .dark .stat-card {
            background: rgba(20, 20, 20, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: none;
        }

        .stat-card:hover {
            border-color: rgba(56, 189, 248, 0.5);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
        }

        .dark .stat-card:hover {
            border-color: rgba(56, 189, 248, 0.3);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
        }

        .active-link {
            background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, transparent 100%);
            border-right: 4px solid #38bdf8;
            color: #0284c7;
        }

        .dark .active-link {
            color: #38bdf8;
        }

        /* سكرول بار عام */
        ::-webkit-scrollbar {
            width: 10px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        .dark ::-webkit-scrollbar-track {
            background: #050505;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .dark ::-webkit-scrollbar-thumb {
            background: #1f2937;
        }

        /* سكرول بار مخصص للإشعارات */
        .custom-scrollbar::-webkit-scrollbar {
            width: 4px;
        }

        .custom-scrollbar::-webkit-scrollbar-track {
            background: transparent;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(156, 163, 175, 0.2);
            border-radius: 10px;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(56, 189, 248, 0.5);
        }

        #sidebar {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #main-content {
            transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-hidden {
            transform: translateX(100%) !important;
        }

        .content-full {
            margin-right: 0 !important;
        }

        @media (max-width: 1023px) {
            #sidebar {
                transform: translateX(100%);
            }

            #main-content {
                margin-right: 0 !important;
            }

            #sidebar.mobile-show {
                transform: translateX(0) !important;
            }
        }

        .status-active {
            color: #22c55e;
            font-weight: bold;
        }

        .status-inactive {
            color: #ef4444;
            font-weight: bold;
        }

        .status-warning {
            color: #e4ab00;
            font-weight: bold;
        }

        /* ===== Modern Button System ===== */
        .btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.45rem !important;
            padding: 0.55rem 1.25rem !important;
            border-radius: 0.85rem !important;
            font-family: 'Cairo', sans-serif !important;
            font-size: 0.8125rem !important;
            font-weight: 700 !important;
            line-height: 1.35 !important;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
            cursor: pointer !important;
            border: none !important;
            text-decoration: none !important;
            vertical-align: middle !important;
            outline: none !important;
        }

        .btn:hover {
            transform: translateY(-2px);
            text-decoration: none !important;
        }

        .btn:active {
            transform: scale(0.97) !important;
        }

        .btn-primary {
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.4) !important;
        }
        .btn-primary:hover {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
            box-shadow: 0 6px 20px -2px rgba(2, 132, 199, 0.55) !important;
            color: #ffffff !important;
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.4) !important;
        }
        .btn-success:hover {
            background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
            box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.55) !important;
            color: #ffffff !important;
        }

        .btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px -2px rgba(239, 68, 68, 0.4) !important;
        }
        .btn-danger:hover {
            background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
            box-shadow: 0 6px 20px -2px rgba(239, 68, 68, 0.55) !important;
            color: #ffffff !important;
        }

        .btn-warning, .btn-warinig {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.4) !important;
        }
        .btn-warning:hover, .btn-warinig:hover {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
            box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.55) !important;
            color: #ffffff !important;
        }

        .btn-info {
            background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px -2px rgba(6, 182, 212, 0.4) !important;
        }
        .btn-info:hover {
            background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%) !important;
            box-shadow: 0 6px 20px -2px rgba(6, 182, 212, 0.55) !important;
            color: #ffffff !important;
        }

        .btn-dark {
            background: #1e293b !important;
            color: #f8fafc !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
        }
        .btn-dark:hover {
            background: #334155 !important;
            color: #ffffff !important;
        }

        .btn-secondary {
            background: #475569 !important;
            color: #ffffff !important;
        }
        .btn-secondary:hover {
            background: #64748b !important;
            color: #ffffff !important;
        }

        .btn-light {
            background: #f1f5f9 !important;
            color: #334155 !important;
            border: 1px solid #e2e8f0 !important;
        }
        .dark .btn-light {
            background: #1e1e26 !important;
            color: #cbd5e1 !important;
            border-color: rgba(255, 255, 255, 0.08) !important;
        }
        .btn-light:hover {
            background: #e2e8f0 !important;
        }
        .dark .btn-light:hover {
            background: #2a2a35 !important;
            color: #fff !important;
        }

        .btn-sm {
            padding: 0.35rem 0.85rem !important;
            font-size: 0.75rem !important;
            border-radius: 0.65rem !important;
        }

        .btn-lg {
            padding: 0.75rem 1.75rem !important;
            font-size: 0.95rem !important;
            border-radius: 1rem !important;
        }

        /* ===== Luxury Glassmorphism Modal System ===== */
        .modal {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 1050 !important;
            display: none; /* MUST BE HIDDEN BY DEFAULT */
            width: 100% !important;
            height: 100% !important;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            outline: 0 !important;
        }

        .modal.fade {
            opacity: 0;
            transition: opacity 0.2s linear;
        }

        .modal.show,
        .modal.fade.show {
            display: block !important;
            opacity: 1 !important;
        }

        .modal-open {
            overflow: hidden !important;
        }

        .modal-open .modal {
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }

        .modal-backdrop {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 1040 !important;
            width: 100vw !important;
            height: 100vh !important;
            background-color: rgba(5, 5, 8, 0.75) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
        }

        .modal-backdrop.fade {
            opacity: 0;
            transition: opacity 0.15s linear;
        }

        .modal-backdrop.show,
        .modal-backdrop.fade.show {
            opacity: 1 !important;
        }

        .modal-dialog {
            position: relative !important;
            width: auto !important;
            margin: 2rem auto !important;
            max-width: 540px !important;
            pointer-events: none !important;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        .modal.fade .modal-dialog {
            transform: scale(0.95) translateY(-20px) !important;
        }

        .modal.show .modal-dialog,
        .modal.fade.show .modal-dialog {
            transform: scale(1) translateY(0) !important;
        }

        .modal-dialog-centered {
            display: flex !important;
            align-items: center !important;
            min-height: calc(100% - 3.5rem) !important;
        }

        .modal-content {
            border-radius: 1.75rem !important;
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3) !important;
            overflow: hidden !important;
            font-family: 'Cairo', sans-serif !important;
        }
        .dark .modal-content {
            background: #101016 !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9) !important;
            color: #f3f4f6 !important;
        }

        .modal-header {
            padding: 1.25rem 1.75rem !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
            background: #fafafa !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
        }
        .dark .modal-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
            background: #14141e !important;
        }

        .modal-title {
            font-weight: 800 !important;
            font-size: 1.1rem !important;
            color: #0284c7 !important;
            margin: 0 !important;
            display: flex !important;
            align-items: center !important;
            gap: 0.5rem !important;
        }
        .dark .modal-title {
            color: #38bdf8 !important;
        }

        .modal-header .close {
            padding: 0 !important;
            margin: 0 !important;
            width: 2.25rem !important;
            height: 2.25rem !important;
            border-radius: 0.75rem !important;
            background: rgba(0, 0, 0, 0.05) !important;
            color: #6b7280 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border: none !important;
            font-size: 1.35rem !important;
            line-height: 1 !important;
            transition: all 0.2s ease !important;
            opacity: 1 !important;
            cursor: pointer !important;
        }
        .dark .modal-header .close {
            background: rgba(255, 255, 255, 0.08) !important;
            color: #9ca3af !important;
        }
        .modal-header .close:hover {
            background: rgba(239, 68, 68, 0.18) !important;
            color: #ef4444 !important;
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 1.75rem !important;
            font-size: 0.95rem !important;
            line-height: 1.65 !important;
        }

        .modal-footer {
            padding: 1.25rem 1.75rem !important;
            border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
            background: #fafafa !important;
            display: flex !important;
            align-items: center !important;
            justify-content: flex-end !important;
            gap: 0.75rem !important;
        }
        .dark .modal-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
            background: #14141e !important;
        }

        /* Form Controls in and out of Modals */
        .form-control, select.form-control, input.form-control {
            border-radius: 0.85rem !important;
            padding: 0.65rem 1.15rem !important;
            font-size: 0.875rem !important;
            border: 1px solid #d1d5db !important;
            font-family: 'Cairo', sans-serif !important;
            transition: all 0.2s ease !important;
            outline: none !important;
        }
        .dark .form-control, .dark select.form-control, .dark input.form-control {
            background: #161622 !important;
            border-color: rgba(255, 255, 255, 0.12) !important;
            color: #ffffff !important;
        }
        .form-control:focus, .dark .form-control:focus {
            border-color: #38bdf8 !important;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
        }

        /* ===== Modern Table Styling ===== */
        table thead tr,
        table thead {
            background: #121218 !important;
            color: #38bdf8 !important;
        }
        .dark table thead tr,
        .dark table thead {
            background: #14141e !important;
            color: #38bdf8 !important;
        }

        table thead tr th,
        table thead th,
        table thead th span,
        table thead th div {
            color: #38bdf8 !important;
            font-weight: 800 !important;
            font-size: 0.8rem !important;
            border-bottom: 2px solid rgba(56, 189, 248, 0.2) !important;
            border-top: none !important;
            padding: 1rem 0.85rem !important;
            vertical-align: middle !important;
        }

        table tbody td {
            padding: 0.85rem !important;
            vertical-align: middle !important;
            font-size: 0.85rem !important;
            border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
        }
        .dark table tbody td {
            border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
        }

        table tbody tr:hover {
            background-color: rgba(56, 189, 248, 0.05) !important;
        }

        /* Action Buttons Group in Tables */
        .action-btns-wrap {
            display: inline-flex !important;
            align-items: center !important;
            gap: 0.35rem !important;
            flex-wrap: wrap !important;
            justify-content: center !important;
        }

        /* ===== Modern Badge System ===== */
        .badge {
            display: inline-flex !important;
            align-items: center !important;
            gap: 0.35rem !important;
            padding: 0.35rem 0.75rem !important;
            border-radius: 9999px !important;
            font-size: 0.75rem !important;
            font-weight: 700 !important;
            letter-spacing: 0.02em !important;
            font-family: 'Cairo', sans-serif !important;
            vertical-align: middle !important;
        }
        .badge-success {
            background-color: rgba(16, 185, 129, 0.12) !important;
            color: #10b981 !important;
            border: 1px solid rgba(16, 185, 129, 0.25) !important;
        }
        .badge-danger {
            background-color: rgba(239, 68, 68, 0.12) !important;
            color: #ef4444 !important;
            border: 1px solid rgba(239, 68, 68, 0.25) !important;
        }
        .badge-warning {
            background-color: rgba(245, 158, 11, 0.12) !important;
            color: #f59e0b !important;
            border: 1px solid rgba(245, 158, 11, 0.25) !important;
        }
        .badge-info {
            background-color: rgba(6, 182, 212, 0.12) !important;
            color: #06b6d4 !important;
            border: 1px solid rgba(6, 182, 212, 0.25) !important;
        }
        .badge-primary {
            background-color: rgba(2, 132, 199, 0.12) !important;
            color: #0284c7 !important;
            border: 1px solid rgba(2, 132, 199, 0.25) !important;
        }
        .badge-light {
            background-color: rgba(156, 163, 175, 0.12) !important;
            color: #6b7280 !important;
            border: 1px solid rgba(156, 163, 175, 0.25) !important;
        }
        .dark .badge-light {
            color: #9ca3af !important;
            background-color: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
        .card {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 1.5rem;
            box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
            width: 100% !important;
            max-width: 100% !important;
        }
        .dark .card {
            background: #0d0d10;
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: 0 4px 20px -5px rgba(0,0,0,0.5);
        }
        .card-header {
            background: transparent;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            padding: 1.25rem 1.5rem;
        }
        .dark .card-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .card-body {
            padding: 1.5rem;
        }

        .form-control, .custom-select, select.form-control, input.form-control, textarea.form-control {
            display: block !important;
            width: 100% !important;
            box-sizing: border-box !important;
            border-radius: 0.85rem !important;
            padding: 0.65rem 1.15rem !important;
            border: 1px solid #d1d5db !important;
            background-color: #ffffff !important;
            color: #0f172a !important; /* لون النص في الوضع النهاري أسود */
            font-size: 0.875rem !important;
            font-family: 'Cairo', sans-serif !important;
            transition: all 0.2s ease !important;
            outline: none !important;
        }
        .form-control::placeholder, input.form-control::placeholder, textarea.form-control::placeholder {
            color: #94a3b8 !important;
        }
        .form-control:focus, .custom-select:focus, select.form-control:focus, input.form-control:focus, textarea.form-control:focus {
            border-color: #0284c7 !important;
            box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
            color: #0f172a !important; /* الكتابة باللون الأسود في الوضع النهاري عند التركيز */
            background-color: #ffffff !important;
        }
        select.form-control option {
            background-color: #ffffff !important;
            color: #0f172a !important;
        }

        /* الوضع الليلي (Dark Mode) */
        .dark .form-control, .dark .custom-select, .dark select.form-control, .dark input.form-control, .dark textarea.form-control {
            background-color: #161622 !important;
            border-color: rgba(255, 255, 255, 0.12) !important;
            color: #ffffff !important;
        }
        .dark .form-control::placeholder, .dark input.form-control::placeholder, .dark textarea.form-control::placeholder {
            color: #64748b !important;
        }
        .dark .form-control:focus, .dark .custom-select:focus, .dark select.form-control:focus, .dark input.form-control:focus, .dark textarea.form-control:focus {
            border-color: #38bdf8 !important;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
            color: #ffffff !important;
            background-color: #161622 !important;
        }
        .dark select.form-control option {
            background-color: #161622 !important;
            color: #ffffff !important;
        }

        /* ضمان بقاء الكتابة باللون الأسود دائماً في أي مدخل بالوضع النهاري */
        input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
        select,
        textarea {
            color: #0f172a;
        }
        .dark input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
        .dark select,
        .dark textarea {
            color: #ffffff;
        }
