/* /Components/Layout/MainLayout.razor.rz.scp.css */
.ce-layout[b-y3r7t6wxgf] {
    min-height: 100vh;
    max-width: 100%;
    background: transparent;
}

.ce-layout--busy .mud-appbar[b-y3r7t6wxgf],
.ce-layout--busy .mud-drawer[b-y3r7t6wxgf],
.ce-layout--busy .mud-main-content[b-y3r7t6wxgf],
.ce-layout--busy .mud-popover[b-y3r7t6wxgf],
.ce-layout--busy button[b-y3r7t6wxgf],
.ce-layout--busy a[b-y3r7t6wxgf],
.ce-layout--busy input[b-y3r7t6wxgf],
.ce-layout--busy textarea[b-y3r7t6wxgf],
.ce-layout--busy select[b-y3r7t6wxgf] {
    pointer-events: none !important;
}

/* ══════════════════════════════════════════════════════
   AppBar - تصميم بسيط والنظيف
   ══════════════════════════════════════════════════════ */
.clean-appbar[b-y3r7t6wxgf] {
    background: linear-gradient(135deg, #0e5f66 0%, #0d9488 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    height: 56px !important;
    padding: 0 1rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clean-appbar .appbar-title[b-y3r7t6wxgf] {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════
   Sidebar مع Footer داخلي
   ══════════════════════════════════════════════════════ */
.sidebar-with-footer[b-y3r7t6wxgf] {
    background: linear-gradient(180deg, #0a2a30 0%, #13343b 40%, #0d2630 100%) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15) !important;
    display: flex;
    flex-direction: column;
    top: 56px !important; /* يبدأ من تحت AppBar مباشرة */
    height: calc(100vh - 56px) !important;
}

/* إلغاء تأثير الـ fixed من MudBlazor */
.sidebar-with-footer.mud-drawer-fixed[b-y3r7t6wxgf] {
    position: fixed !important;
    top: 56px !important;
}

.sidebar-with-footer[b-y3r7t6wxgf],
.sidebar-with-footer.mud-drawer-fixed[b-y3r7t6wxgf] {
    top: 0 !important;
}

.sidebar-content-wrapper[b-y3r7t6wxgf] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header[b-y3r7t6wxgf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1rem 1.25rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-logo[b-y3r7t6wxgf] {
    color: #14b8a6 !important;
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.4));
}

.sidebar-title[b-y3r7t6wxgf] {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════════════
   Footer داخل الشريط الجانبي
   ══════════════════════════════════════════════════════ */
.sidebar-footer[b-y3r7t6wxgf] {
    margin-top: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(20, 184, 166, 0.2);
}

.footer-divider[b-y3r7t6wxgf] {
    margin-bottom: 0.75rem;
    border-color: rgba(20, 184, 166, 0.3) !important;
}

.footer-info[b-y3r7t6wxgf] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-row[b-y3r7t6wxgf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-row .mud-icon-root[b-y3r7t6wxgf] {
    color: #14b8a6 !important;
    font-size: 0.9rem;
}

.footer-text[b-y3r7t6wxgf] {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.78rem !important;
    font-weight: 500;
}

.footer-phone-text[b-y3r7t6wxgf] {
    color: #14b8a6 !important;
    font-weight: 700 !important;
    direction: ltr;
    letter-spacing: 0.05em;
}

.footer-copyright[b-y3r7t6wxgf] {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.7rem !important;
    text-align: center;
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════
   المحتوى الرئيسي
   ══════════════════════════════════════════════════════ */
.main-content[b-y3r7t6wxgf] {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 56px);
}

.layout-busy-overlay[b-y3r7t6wxgf] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(255, 253, 248, 0.36);
    backdrop-filter: blur(6px);
}

.layout-busy-overlay__panel[b-y3r7t6wxgf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    max-width: min(340px, 100%);
    padding: 1rem 1.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(19, 52, 59, 0.12);
    box-shadow: 0 24px 60px rgba(17, 38, 44, 0.12);
}

@media (max-width: 600px) {
    .clean-appbar[b-y3r7t6wxgf] {
        padding: 0 0.5rem !important;
    }
    
    .clean-appbar .appbar-title[b-y3r7t6wxgf] {
        font-size: 0.95rem;
    }
    
    .sidebar-with-footer[b-y3r7t6wxgf] {
        width: 240px !important;
    }
    
    .sidebar-header[b-y3r7t6wxgf] {
        padding: 1.25rem 0.75rem 1rem;
    }
    
    .sidebar-footer[b-y3r7t6wxgf] {
        padding: 0.75rem;
    }
}

#blazor-error-ui[b-y3r7t6wxgf] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-y3r7t6wxgf] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-menu[b-zmbed10gm3]  .mud-nav-link {
    border-radius: 4px;
    margin-bottom: 0.25rem;
    color: inherit;
    padding: 0.6rem 0.75rem;
    min-height: 40px;
    transition: background-color 0.15s ease;
}

.nav-menu[b-zmbed10gm3]  .mud-nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nav-menu[b-zmbed10gm3]  .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-menu[b-zmbed10gm3]  .mud-nav-link .mud-nav-link-icon {
    color: inherit;
    margin-inline-end: 0.75rem;
}

.logout-form[b-zmbed10gm3] {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
}

.logout-button[b-zmbed10gm3] {
    justify-content: flex-start;
    min-height: 40px;
    border-radius: 4px;
    text-transform: none;
    font-weight: normal;
}

.nav-item[b-zmbed10gm3] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type[b-zmbed10gm3] {
    padding-top: 1rem;
}

.nav-item:last-of-type[b-zmbed10gm3] {
    padding-bottom: 1rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3vg26kqlr1],
.components-reconnect-repeated-attempt-visible[b-3vg26kqlr1],
.components-reconnect-failed-visible[b-3vg26kqlr1],
.components-pause-visible[b-3vg26kqlr1],
.components-resume-failed-visible[b-3vg26kqlr1],
.components-rejoining-animation[b-3vg26kqlr1] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-retrying[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-failed[b-3vg26kqlr1],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3vg26kqlr1] {
    display: block;
}

#components-reconnect-modal[b-3vg26kqlr1] {
    width: min(26rem, calc(100vw - 2rem));
    margin: 16vh auto;
    border: 0;
    border-radius: 28px;
    padding: 1.6rem;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 24px 64px rgba(17, 38, 44, 0.18);
    color: #183136;
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-3vg26kqlr1 0.4s both;
}

#components-reconnect-modal[open][b-3vg26kqlr1] {
    animation:
        components-reconnect-modal-slideUp-b-3vg26kqlr1 0.8s cubic-bezier(.05, .89, .25, 1.02),
        components-reconnect-modal-fadeInOpacity-b-3vg26kqlr1 0.35s ease-in-out;
}

#components-reconnect-modal[b-3vg26kqlr1]::backdrop {
    background: rgba(13, 38, 43, 0.46);
    backdrop-filter: blur(4px);
}

.components-reconnect-container[b-3vg26kqlr1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.components-reconnect-badge[b-3vg26kqlr1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 95, 102, 0.08);
    color: #0e5f66;
    font-size: 0.85rem;
    font-weight: 700;
}

#components-reconnect-modal p[b-3vg26kqlr1] {
    margin: 0;
    line-height: 1.8;
}

#components-reconnect-modal button[b-3vg26kqlr1] {
    border: 0;
    border-radius: 16px;
    padding: 0.75rem 1.35rem;
    background: linear-gradient(135deg, #0e5f66, #18444a);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

#components-reconnect-modal button:hover[b-3vg26kqlr1] {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.components-rejoining-animation[b-3vg26kqlr1] {
    position: relative;
    width: 76px;
    height: 76px;
}

.components-rejoining-animation div[b-3vg26kqlr1] {
    position: absolute;
    border: 3px solid #1f7682;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-3vg26kqlr1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-3vg26kqlr1] {
    animation-delay: -0.5s;
}

@keyframes components-reconnect-modal-slideUp-b-3vg26kqlr1 {
    from {
        transform: translateY(20px) scale(0.96);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3vg26kqlr1 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3vg26kqlr1 {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes components-rejoining-animation-b-3vg26kqlr1 {
    0% {
        top: 38px;
        left: 38px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 38px;
        left: 38px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 76px;
        height: 76px;
        opacity: 0;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════
   لوحة التحكم التنفيذية — Home.razor.css
   تصميم حديث وأنيق
   ══════════════════════════════════════════════════════ */

/* الحاوية الرئيسية */
.dashboard-shell[b-n497799t0d] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    direction: rtl;
    text-align: right;
    padding: 0;
}

/* ══════════════════════════════════════════════════════
   رأس اللوحة - تصميم نظيف
   ══════════════════════════════════════════════════════ */
.dashboard-header[b-n497799t0d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(14, 95, 102, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.dashboard-header:hover[b-n497799t0d] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-header__copy[b-n497799t0d] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-header__title[b-n497799t0d] {
    font-weight: 700 !important;
    color: #0c2d33 !important;
    font-size: 1.35rem !important;
}

.dashboard-header__meta[b-n497799t0d] {
    color: #6b7f85;
    font-size: 0.82rem;
}

.dashboard-header__sep[b-n497799t0d] {
    margin: 0 0.4rem;
    opacity: 0.4;
}

.dashboard-header__refresh[b-n497799t0d] {
    flex-shrink: 0;
    min-height: 42px !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(14, 95, 102, 0.2) !important;
    transition: all 0.3s ease !important;
}

.dashboard-header__refresh:hover[b-n497799t0d] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 95, 102, 0.3) !important;
}

.dashboard-header__refresh .mud-icon-root[b-n497799t0d] {
    transition: transform 0.4s ease;
}

.dashboard-header__refresh:hover .mud-icon-root[b-n497799t0d] {
    transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════
   تسمية القسم
   ══════════════════════════════════════════════════════ */
.dashboard-section-label[b-n497799t0d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0e5f66;
    padding: 0 0.25rem;
    margin-top: 0.5rem;
}

.dashboard-section-label .mud-typography[b-n497799t0d] {
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: 0.85rem;
}

.dashboard-section-label .mud-icon-root[b-n497799t0d] {
    color: #0e5f66 !important;
}

/* ══════════════════════════════════════════════════════
   بطاقات العملات - تصميم نظيف وأنيق
   ══════════════════════════════════════════════════════ */
.currency-card[b-n497799t0d] {
    position: relative;
    padding: 1.25rem 1.15rem 1.1rem;
    border-radius: 1rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-height: 135px;
}

.currency-card:hover[b-n497799t0d] {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* العملة الأساسية — أخضر تيركواز */
.currency-card--base[b-n497799t0d] {
    background: linear-gradient(135deg, #0d9488 0%, #065f46 100%);
}

/* أزرق */
.currency-card--blue[b-n497799t0d] {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}

/* بنفسجي */
.currency-card--purple[b-n497799t0d] {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* برتقالي */
.currency-card--orange[b-n497799t0d] {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* تيركواز ثانوي */
.currency-card--teal[b-n497799t0d] {
    background: linear-gradient(135deg, #0891b2 0%, #06565e 100%);
}

.currency-card__warning-chip[b-n497799t0d] {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.68rem !important;
}

.currency-card__header[b-n497799t0d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.currency-card__code[b-n497799t0d] {
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    color: #ffffff !important;
}

.currency-card__icon[b-n497799t0d] {
    opacity: 0.22;
    font-size: 2.6rem !important;
}

.currency-card__row[b-n497799t0d] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.currency-card__row--secondary[b-n497799t0d] {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    margin-top: 0.15rem;
}

.currency-card__label[b-n497799t0d] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.currency-card__value[b-n497799t0d] {
    font-weight: 700 !important;
    color: #ffffff !important;
}

.currency-card__base-currency[b-n497799t0d] {
    font-size: 0.75em;
    opacity: 0.82;
    margin-right: 0.25rem;
}

/* ══════════════════════════════════════════════════════
   بطاقات المؤشرات الرئيسية - تصميم نظيف
   ══════════════════════════════════════════════════════ */
.kpi-card[b-n497799t0d] {
    position: relative;
    padding: 1.25rem 1.15rem 1.1rem;
    border-radius: 1rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-height: 135px;
}

.kpi-card:hover[b-n497799t0d] {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* نيلي */
.kpi-card--indigo[b-n497799t0d] {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
}

/* أخضر */
.kpi-card--emerald[b-n497799t0d] {
    background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
}

/* برتقالي */
.kpi-card--amber[b-n497799t0d] {
    background: linear-gradient(135deg, #f59e0b 0%, #78350f 100%);
}

.kpi-card__header[b-n497799t0d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-card__title[b-n497799t0d] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600 !important;
}

.kpi-card__icon[b-n497799t0d] {
    opacity: 0.22;
    font-size: 2.6rem !important;
}

.kpi-card__value[b-n497799t0d] {
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2;
}

.kpi-card__caption[b-n497799t0d] {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

/* شارة الاتجاه */
.kpi-card__trend[b-n497799t0d] {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    width: fit-content;
    margin-top: 0.15rem;
}

.kpi-card__trend.kpi-trend--up[b-n497799t0d] {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.kpi-card__trend.kpi-trend--down[b-n497799t0d] {
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.kpi-card__trend.kpi-trend--neutral[b-n497799t0d] {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ══════════════════════════════════════════════════════
   أقسام المحتوى العام
   ══════════════════════════════════════════════════════ */
.dashboard-section[b-n497799t0d] {
    padding: 1.15rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(14, 95, 102, 0.08);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-section--chart[b-n497799t0d] {
    gap: 0.85rem;
}

.dashboard-section__header[b-n497799t0d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(14, 95, 102, 0.08);
}

/* تنبيهات */
.dashboard-alert[b-n497799t0d] {
    margin-bottom: 0.1rem;
}

/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .dashboard-header[b-n497799t0d] {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header__refresh[b-n497799t0d] {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 599px) {
    .dashboard-header[b-n497799t0d],
    .dashboard-section[b-n497799t0d],
    .kpi-card[b-n497799t0d],
    .currency-card[b-n497799t0d] {
        padding: 1rem;
    }

    .currency-card[b-n497799t0d],
    .kpi-card[b-n497799t0d] {
        min-height: auto;
    }
    
    .dashboard-header__title[b-n497799t0d] {
        font-size: 1.25rem !important;
    }
}
