/* ===== المدحتية - تحسينات بصرية (الهوية الزرقاء) للوحات Filament ===== */

:root {
    --mh-brand: #1877f2;
    --mh-brand-soft: #4a9bff;
    --mh-brand-deep: #0b4da2;
    --mh-brand-pale: #e7f0fe;
    --mh-ink: #1c1e21;
}

/* فرض الأرقام اللاتينية (0-9) بغض النظر عن الخط أو اللغة */
html,
body,
.fi-body,
.fi-simple-layout {
    font-variant-numeric: lining-nums;
    -webkit-locale: "en";
}

/* إظهار/إخفاء نسخة الشعار حسب الوضع */
.mh-brand-dark { display: none; }
.dark .mh-brand-light { display: none; }
.dark .mh-brand-dark { display: inline-block; }
.mh-brand-logo { width: auto; }

/* خلفية عامة ناعمة */
.fi-body {
    background:
        radial-gradient(1000px 400px at 100% -10%, rgba(24, 119, 242, 0.08), transparent 60%),
        #f5f8fd;
}

/* بطاقات وأقسام أكثر نعومة */
.fi-section,
.fi-wi,
.fi-ta-ctn,
.fi-modal-window {
    border-radius: 1rem !important;
    border: 1px solid rgba(24, 119, 242, 0.14) !important;
    box-shadow: 0 6px 24px -12px rgba(15, 23, 42, 0.10) !important;
}

.dark .fi-section,
.dark .fi-wi,
.dark .fi-ta-ctn {
    box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(74, 155, 255, 0.12) !important;
}

/* الشريط العلوي */
.fi-topbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(24, 119, 242, 0.18);
}

.fi-topbar > nav {
    background: rgba(255, 255, 255, 0.85) !important;
}

.dark .fi-topbar > nav {
    background: rgba(20, 24, 31, 0.85) !important;
}

/* الشريط الجانبي */
.fi-sidebar {
    border-inline-end: 1px solid rgba(24, 119, 242, 0.14);
}

.fi-sidebar-header {
    border-bottom: 1px solid rgba(24, 119, 242, 0.14);
}

/* أزرار أساسية بتدرّج أزرق */
.fi-btn.fi-color-primary,
.fi-ac-btn-action.fi-color-primary > button {
    background-image: linear-gradient(135deg, var(--mh-brand-soft), var(--mh-brand)) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px -10px rgba(24, 119, 242, 0.55) !important;
}

.fi-btn.fi-color-primary:hover {
    background-image: linear-gradient(135deg, var(--mh-brand), var(--mh-brand-deep)) !important;
    transform: translateY(-1px);
}

/* عناصر التنقّل النشطة */
.fi-sidebar-item-active .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(24, 119, 242, 0.16), transparent) !important;
    border-inline-start: 3px solid var(--mh-brand);
    border-radius: 0.75rem;
}

/* شارات (badges) */
.fi-badge {
    border-radius: 9999px !important;
    font-weight: 600;
}

/* صفحة تسجيل الدخول: خلفية زرقاء ناعمة وبطاقة مركزية */
.fi-simple-layout {
    background:
        radial-gradient(1100px 480px at 95% -8%, rgba(24, 119, 242, 0.20), transparent 60%),
        radial-gradient(900px 480px at 0% 108%, rgba(74, 155, 255, 0.14), transparent 55%),
        linear-gradient(180deg, #ffffff, #e9f1fd) !important;
}

.fi-simple-main {
    border-radius: 1.5rem !important;
    border: 1px solid rgba(24, 119, 242, 0.25) !important;
    box-shadow: 0 30px 70px -25px rgba(24, 119, 242, 0.35), 0 4px 18px -8px rgba(15, 23, 42, 0.12) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
}

.fi-simple-layout .mh-brand-dark { display: none; }
.fi-simple-layout .mh-brand-light { display: inline-block; }

/* عناوين */
.fi-header-heading {
    letter-spacing: -0.01em;
}

/* جداول أنعم */
.fi-ta-header-cell {
    text-transform: none;
    font-weight: 700;
    background: rgba(231, 240, 254, 0.55);
}

.fi-ta-row:hover {
    background: rgba(24, 119, 242, 0.06) !important;
}

/* إحصائيات لوحة المعلومات بلمسة زرقاء */
.fi-wi-stats-overview-stat {
    border-radius: 1rem !important;
    background:
        radial-gradient(220px 120px at 90% 0%, rgba(24, 119, 242, 0.10), transparent 65%),
        #ffffff !important;
}

.dark .fi-wi-stats-overview-stat {
    background: rgba(23, 27, 34, 0.7) !important;
}

/* تمرير أنيق */
* { scrollbar-width: thin; scrollbar-color: rgba(24, 119, 242, 0.45) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(24, 119, 242, 0.45); border-radius: 9999px; }
