﻿/* ===========================================
   HighEndProtection Layout v2.4
   =========================================== */

/* ===========================================
   الخلفية العامة
   =========================================== */

body {
    background: var(--hep-background);
}

/* ===========================================
   الهيدر الرئيسي
   =========================================== */

.hep-appbar {
    height: 64px;
    padding-inline: 18px;
    background: var(--hep-surface) !important;
    border-bottom: 1px solid var(--hep-border);
    box-shadow: var(--hep-shadow-small);
}

/* ===========================================
   القائمة الجانبية
   =========================================== */

.hep-drawer {
    background: var(--hep-sidebar) !important;
    color: var(--hep-sidebar-text);
    border: none;
}

.hep-mobile-logout { display: none !important; }

@media (max-width: 959.98px) {
    .hep-drawer,
    .hep-main-menu-toggle,
    .hep-desktop-action { display: none !important; }
    .hep-root .mud-main-content { margin-inline: 0 !important; padding-inline: 0 !important; }
    .hep-root .hep-appbar { margin-inline: 0 !important; width: 100% !important; }
    .hep-appbar .mud-toolbar { padding-inline: 4px; gap: 0; }
    .hep-appbar-brand { display: none !important; }
    .hep-global-back { min-width: 64px; flex-shrink: 0; }
    .hep-designer-back { min-width: 0; max-width: 100px; }
    .hep-designer-back .mud-button-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
    .hep-mobile-logout { display: inline-flex !important; flex-shrink: 0; }
    .hep-profile-drawer { max-width: 100vw; }
}

/* ===========================================
   شعار النظام
   =========================================== */

.hep-logo {
    text-align: center;
    color: var(--hep-sidebar-text);
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

    .hep-logo h6 {
        color: var(--hep-sidebar-text);
        font-size: 24px;
        font-weight: 700;
    }

    .hep-logo .mud-typography-caption {
        color: var(--hep-sidebar-text);
        opacity: .75;
    }

/* ===========================================
   محتوى الصفحة
   =========================================== */

.hep-main-content {
    min-height: calc(100vh - 64px);
    padding: 36px 24px 24px;
}

/* ===========================================
   روابط القائمة
   =========================================== */

.mud-nav-link {
    margin: 4px 10px;
    border-radius: 10px;
    transition: var(--hep-transition);
}

    .mud-nav-link:hover {
        background: var(--hep-sidebar-hover);
    }

    .mud-nav-link.active {
        background: var(--hep-primary);
        color: var(--hep-sidebar-text) !important;
    }

        .mud-nav-link.active .mud-icon-root {
            color: var(--hep-sidebar-icon) !important;
        }

/* ===========================================
   مجموعات القائمة
   =========================================== */

.mud-nav-group {
    margin-top: 8px;
}

/* ===========================================
   أيقونات القائمة
   =========================================== */

.mud-nav-link .mud-icon-root {
    color: var(--hep-sidebar-icon);
    font-size: 22px;
}


/* ===========================================
   عنوان الصفحة القديم
   =========================================== */

.hep-page-title {
    margin-bottom: 20px;
    color: var(--hep-text);
    font-size: 30px;
    font-weight: 700;
}

/* ===========================================
   بطاقات الصفحات
   =========================================== */

.hep-content-card {
    padding: 24px;
    color: var(--hep-text);
    background: var(--hep-surface);
    border: 1px solid var(--hep-border);
    border-radius: 16px;
    box-shadow: var(--hep-shadow-small);
}

/* ===========================================
   الشاشات الكبيرة
   =========================================== */

@media (min-width: 1400px) {
    .hep-main-content {
        padding: 32px;
    }

    .hep-page-header-main {
        padding: 30px 32px 24px;
    }

    .hep-page-header-toolbar {
        padding-inline: 32px;
    }

    .hep-page-header-search-row {
        padding-inline: 32px;
    }
}

/* ===========================================
   اللابتوب
   =========================================== */

@media (max-width: 1200px) {
    .hep-main-content {
        padding: 22px;
    }
}

/* ===========================================
   التابلت
   =========================================== */

@media (max-width: 992px) {
    .hep-main-content {
        padding: 18px;
    }

    .hep-page-header-main {
        padding: 22px;
    }

    .hep-page-header-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 22px;
    }

    .hep-page-header-primary-actions,
    .hep-page-header-utility-actions {
        width: 100%;
    }

    .hep-page-header-search-row {
        padding: 16px 22px 20px;
    }

    .hep-page-header-search {
        max-width: none;
    }
}

/* ===========================================
   الجوال
   =========================================== */

@media (max-width: 768px) {
    .hep-main-content {
        padding: 12px;
    }

    .hep-appbar {
        height: 64px;
        padding-inline: 10px;
    }

    .hep-page-header {
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .hep-page-header-main {
        padding: 18px 16px;
    }

    .hep-page-header-heading {
        gap: 12px;
    }

    .hep-page-header-title {
        font-size: 24px;
    }

    .hep-page-header-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .hep-page-header-toolbar {
        padding: 14px 16px;
    }

    .hep-page-header-primary-actions,
    .hep-page-header-utility-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hep-page-header-primary-button,
    .hep-page-header-toolbar .mud-button-root {
        width: 100%;
    }

    .hep-page-header-search-row {
        padding: 14px 16px 18px;
    }

    .hep-page-title {
        font-size: 24px;
    }
}

/* ===========================================
   الجوال الصغير
   =========================================== */

@media (max-width: 480px) {
    .hep-main-content {
        padding: 8px;
    }

    .hep-page-header-main {
        padding: 16px 14px;
    }

    .hep-page-header-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .hep-page-header-title {
        font-size: 21px;
    }

    .hep-page-header-toolbar {
        padding: 12px 14px;
    }

    .hep-page-header-search-row {
        padding: 12px 14px 16px;
    }
}
/* ===========================================
   شاشة تسجيل الدخول
   =========================================== */

.hep-auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 85% 15%, rgba(37, 99, 235, 0.20), transparent 30% ), radial-gradient( circle at 15% 85%, rgba(15, 23, 42, 0.14), transparent 34% ), linear-gradient( 135deg, #eef4fb 0%, #dfe9f5 48%, #edf2f7 100% );
}

    .hep-auth-layout::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        top: -160px;
        left: -120px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.45);
        filter: blur(4px);
    }

    .hep-auth-layout::after {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        right: -110px;
        bottom: -140px;
        border-radius: 50%;
        background: rgba(37, 99, 235, 0.10);
    }

.hep-login-page {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hep-login-card {
    width: 100%;
    max-width: 470px;
    padding: 42px 38px;
    color: var(--hep-text);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.hep-login-heading {
    text-align: center;
    margin-bottom: 8px;
}

.hep-login-icon {
    margin-inline: auto;
    margin-bottom: 16px;
    width: 68px;
    height: 68px;
}

.hep-login-title {
    margin-bottom: 6px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hep-login-card .mud-input-control {
    margin-bottom: 4px;
}

.hep-login-card .mud-input-outlined-border {
    border-radius: 12px;
}

.hep-login-button {
    min-height: 50px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .hep-auth-layout {
        padding: 18px;
    }

    .hep-login-card {
        max-width: 100%;
        padding: 30px 22px;
        border-radius: 18px;
    }

    .hep-login-title {
        font-size: 25px;
    }
}
