/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ═══════════════════════════════════════
   MainLayout Scoped Styles
   Premium iOS-inspired design system
   ═══════════════════════════════════════ */

.app-container[b-gcqz6tpqjm] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.header-banner[b-gcqz6tpqjm] {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.header-content[b-gcqz6tpqjm] {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 60px;
}

/* ── Brand Logo ── */
.brand-logo-img[b-gcqz6tpqjm] {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    flex-shrink: 0;
}

.brand-logo-img:hover[b-gcqz6tpqjm] {
    transform: scale(1.04);
}

/* ── Nav Links ── */
.header-menu[b-gcqz6tpqjm] {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* High breathing room for luxury comfort */
    flex-wrap: nowrap;
}

.nav-header-link[b-gcqz6tpqjm] {
    color: #3c3c43;
    font-weight: 500;
    font-size: 0.92rem; /* Soft scaling for readability */
    padding: 0.5rem 0.85rem; /* More vertical and horizontal breathing room */
    border-radius: 20px; /* Fully rounded premium pill/capsule shape */
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-header-link i[b-gcqz6tpqjm] {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-header-link:hover[b-gcqz6tpqjm] {
    color: var(--ghawth-blue);
    background: rgba(67, 173, 214, 0.05);
}

.nav-header-link:hover i[b-gcqz6tpqjm] {
    opacity: 1;
}

.nav-header-link.active[b-gcqz6tpqjm],
.nav-header-link.active-parent[b-gcqz6tpqjm] {
    color: var(--ghawth-blue) !important;
    font-weight: 600;
    background: rgba(67, 173, 214, 0.08);
    box-shadow: none; /* Removed heavy drop-shadows for a cleaner minimalist feel */
}

.nav-header-link.active i[b-gcqz6tpqjm],
.nav-header-link.active-parent i[b-gcqz6tpqjm] {
    opacity: 1;
    color: var(--ghawth-blue);
}

.nav-header-link.active[b-gcqz6tpqjm]::after,
.nav-header-link.active-parent[b-gcqz6tpqjm]::after {
    display: none;
}

/* ── Dropdown Container ── */
.dropdown-container[b-gcqz6tpqjm] {
    position: relative;
    display: inline-flex;
}

/* ── Dropdown Toggle Button in Center Nav ── */
.dropdown-toggle-link[b-gcqz6tpqjm] {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* ── Dropdown Backdrop (click-outside-to-close) ── */
.dropdown-backdrop[b-gcqz6tpqjm] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    background: transparent;
}

/* ── Custom Dropdown Menu ── */
.custom-dropdown-menu[b-gcqz6tpqjm] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    min-width: 210px;
    z-index: 1010;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    animation-duration: 0.15s !important;
}

.custom-dropdown-menu.dropdown-menu-end[b-gcqz6tpqjm] {
    left: auto;
    right: 0;
}

/* ── Dropdown Items ── */
.custom-dropdown-menu .dropdown-item[b-gcqz6tpqjm] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3c3c43;
    border: none;
    background: transparent;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    gap: 0.45rem;
}

.custom-dropdown-menu .dropdown-item:hover[b-gcqz6tpqjm] {
    background: rgba(67, 173, 214, 0.08);
    color: var(--ghawth-blue);
}

.custom-dropdown-menu .dropdown-item.selected[b-gcqz6tpqjm] {
    background: rgba(67, 173, 214, 0.1);
    color: var(--ghawth-blue);
    font-weight: 600;
}

.custom-dropdown-menu .dropdown-item.selected[b-gcqz6tpqjm]::before {
    content: '✓';
    font-size: 0.75rem;
    margin-right: 4px;
    font-weight: 700;
}

/* ── Dropdown Arrow Micro-animation ── */
.dropdown-arrow[b-gcqz6tpqjm] {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.dropdown-toggle-link.open .dropdown-arrow[b-gcqz6tpqjm],
.lang-btn.active .dropdown-arrow[b-gcqz6tpqjm] {
    transform: rotate(180deg);
}

/* ── Language Button ── */
.lang-btn[b-gcqz6tpqjm] {
    background: rgba(0, 0, 0, 0.03);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    color: #3c3c43;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.lang-btn:hover[b-gcqz6tpqjm],
.lang-btn.active[b-gcqz6tpqjm] {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ── Auth Pill ── */
.auth-pill[b-gcqz6tpqjm] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.02);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 0.25rem 0.6rem 0.25rem 0.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-pill:hover[b-gcqz6tpqjm] {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

.auth-avatar[b-gcqz6tpqjm] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ghawth-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.auth-email[b-gcqz6tpqjm] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3c3c43;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-logout-btn[b-gcqz6tpqjm] {
    padding: 0.15rem 0.35rem;
    color: #ff3b30;
    font-size: 0.82rem;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    border-radius: 50%;
    line-height: 1;
}

.auth-logout-btn:hover[b-gcqz6tpqjm] {
    background: rgba(255, 59, 48, 0.08);
    color: #d32f2f;
}

/* ── Donate Header Button ── */
.donate-header-btn[b-gcqz6tpqjm] {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.82rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}

/* ══════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════ */
.mobile-menu-btn[b-gcqz6tpqjm] {
    display: none;
    background: transparent;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    color: #3c3c43;
    font-size: 1.15rem;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover[b-gcqz6tpqjm] {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-nav[b-gcqz6tpqjm] {
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    max-height: 75vh;
    overflow-y: auto;
}

.mobile-nav-link[b-gcqz6tpqjm],
.mobile-nav-header[b-gcqz6tpqjm] {
    color: #3c3c43;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-nav-header[b-gcqz6tpqjm] {
    justify-content: space-between;
    cursor: pointer;
}

.rtl-mode .mobile-nav-header[b-gcqz6tpqjm] {
    text-align: right;
}

.mobile-nav-header span[b-gcqz6tpqjm] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mobile-nav-link i[b-gcqz6tpqjm],
.mobile-nav-header span i[b-gcqz6tpqjm] {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    opacity: 0.6;
}

.mobile-nav-link:hover[b-gcqz6tpqjm],
.mobile-nav-link.active[b-gcqz6tpqjm],
.mobile-nav-header:hover[b-gcqz6tpqjm],
.mobile-nav-header.active[b-gcqz6tpqjm] {
    color: var(--ghawth-blue);
    background: rgba(67, 173, 214, 0.06);
}

.mobile-nav-link.active[b-gcqz6tpqjm],
.mobile-nav-header.active[b-gcqz6tpqjm] {
    font-weight: 600;
}

.mobile-nav-link.active i[b-gcqz6tpqjm],
.mobile-nav-header.active span i[b-gcqz6tpqjm] {
    opacity: 1;
}

.mobile-chevron[b-gcqz6tpqjm] {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-header.active .mobile-chevron[b-gcqz6tpqjm] {
    transform: rotate(180deg);
}

.mobile-nav-sub[b-gcqz6tpqjm] {
    margin-left: 1.25rem;
    border-left: 1.5px solid rgba(67, 173, 214, 0.15);
    padding-left: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rtl-mode .mobile-nav-sub[b-gcqz6tpqjm] {
    margin-left: 0;
    margin-right: 1.25rem;
    border-left: none;
    border-right: 1.5px solid rgba(67, 173, 214, 0.15);
    padding-left: 0;
    padding-right: 0.25rem;
}

.mobile-nav-sub .sub-link[b-gcqz6tpqjm] {
    font-size: 0.88rem;
    padding: 0.55rem 0.75rem;
    background: transparent;
}

.mobile-nav-sub .sub-link:hover[b-gcqz6tpqjm],
.mobile-nav-sub .sub-link.active[b-gcqz6tpqjm] {
    background: rgba(67, 173, 214, 0.04);
}

/* ── RTL Fixes ── */
.rtl-mode .nav-header-link.active[b-gcqz6tpqjm]::after {
    left: 20%;
}

.rtl-mode .custom-dropdown-menu[b-gcqz6tpqjm] {
    left: auto;
    right: 0;
}

.rtl-mode .custom-dropdown-menu.dropdown-menu-end[b-gcqz6tpqjm] {
    right: auto;
    left: 0;
}

.rtl-mode .custom-dropdown-menu .dropdown-item[b-gcqz6tpqjm] {
    text-align: right;
}

.rtl-mode .custom-dropdown-menu .dropdown-item.selected[b-gcqz6tpqjm]::before {
    margin-right: 0;
    margin-left: 4px;
}

/* ══════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════ */
.main-content[b-gcqz6tpqjm] {
    flex: 1;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.content[b-gcqz6tpqjm] {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ══════════════════════════════════════
   FOOTER INNER
   ══════════════════════════════════════ */
.footer-inner[b-gcqz6tpqjm] {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Medium-large desktop: scale down gaps and brand */
@media (max-width: 1200px) {
    .header-menu[b-gcqz6tpqjm] {
        gap: 0.65rem;
    }
    .nav-header-link[b-gcqz6tpqjm] {
        padding: 0.45rem 0.7rem;
        font-size: 0.88rem;
    }
    .brand-logo-img[b-gcqz6tpqjm] {
        height: 42px;
    }
}

@media (max-width: 991px) {
    .mobile-menu-btn[b-gcqz6tpqjm] {
        display: inline-flex !important;
    }
}

@media (max-width: 767px) {
    .header-content[b-gcqz6tpqjm] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .brand-logo-img[b-gcqz6tpqjm] {
        height: 38px;
    }
    .content[b-gcqz6tpqjm] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* ══════════════════════════════════════
   BLAZOR ERROR UI
   ══════════════════════════════════════ */
#blazor-error-ui[b-gcqz6tpqjm] {
    color-scheme: dark only;
    background: #ff3b30;
    color: white;
    bottom: 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
    font-size: 0.9rem;
}

#blazor-error-ui a[b-gcqz6tpqjm] {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss[b-gcqz6tpqjm] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.8rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-iys2rm2aqn] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.navbar-toggler:hover[b-iys2rm2aqn] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-iys2rm2aqn] {
    height: 4.5rem;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand[b-iys2rm2aqn] {
    font-size: 1.1rem;
}

.nav-scrollable[b-iys2rm2aqn] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-iys2rm2aqn] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-iys2rm2aqn] {
        display: none;
    }

    .nav-scrollable[b-iys2rm2aqn] {
        display: block;
        height: calc(100vh - 4.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   Ghawth Charity Foundation — Reconnect Modal (Minimal & Clean)
   Lightweight, unobtrusive reconnect notification
   ═══════════════════════════════════════════════════════════════ */

/* ── Hide everything by default ── */
.components-reconnect-first-attempt-visible[b-88oetqldq4],
.components-reconnect-repeated-attempt-visible[b-88oetqldq4],
.components-reconnect-failed-visible[b-88oetqldq4],
.components-pause-visible[b-88oetqldq4],
.components-resume-failed-visible[b-88oetqldq4],
.components-rejoining-animation[b-88oetqldq4] {
    display: none !important;
}

/* ── Show only active state elements ── */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-88oetqldq4],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-88oetqldq4] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-88oetqldq4],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-88oetqldq4] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-88oetqldq4] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-88oetqldq4] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-88oetqldq4] {
    display: block !important;
}

/* ── Modal Dialog Frame ── */
#components-reconnect-modal[b-88oetqldq4] {
    font-family: var(--font-ar, "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    background: #ffffff;
    width: 270px;
    max-width: 85vw;
    margin: auto;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    outline: none;
    overflow: hidden;
    text-align: center;
    direction: rtl;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

#components-reconnect-modal[open][b-88oetqldq4] {
    opacity: 1;
    animation: reconnect-fade-in-b-88oetqldq4 0.25s ease-out forwards;
}

#components-reconnect-modal[b-88oetqldq4]::backdrop {
    background-color: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes reconnect-fade-in-b-88oetqldq4 {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Container ── */
.components-reconnect-container[b-88oetqldq4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Minimal Spinner ── */
.components-rejoining-animation[b-88oetqldq4] {
    margin-bottom: 0.75rem;
}

.reconnect-spinner[b-88oetqldq4] {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(68, 172, 59, 0.2);
    border-top-color: #44ac3b;
    border-radius: 50%;
    animation: reconnect-spin-b-88oetqldq4 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes reconnect-spin-b-88oetqldq4 {
    to {
        transform: rotate(360deg);
    }
}

/* ── Clean Text ── */
.reconnect-text[b-88oetqldq4] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}

#components-seconds-to-next-attempt[b-88oetqldq4] {
    font-weight: 700;
    color: #44ac3b;
    font-family: monospace, sans-serif;
    font-size: 1.05rem;
}

/* ── Single Clean Button ── */
.btn-reconnect[b-88oetqldq4] {
    margin-top: 1rem;
    width: 100%;
    height: 40px;
    background: #44ac3b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(68, 172, 59, 0.2);
    transition: background 0.2s, transform 0.1s;
}

.btn-reconnect:hover[b-88oetqldq4] {
    background: #399631;
    transform: translateY(-1px);
}

.btn-reconnect:active[b-88oetqldq4] {
    transform: translateY(0);
}
