/* ==========================================
   الموبايل والهيدر الجانبي (Light Theme)
   ========================================== */
@media (max-width: 1024px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        background-color: #f8f9fc !important;
        color: #0f172a;
    }
    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* إخفاء عناصر الديسك توب وإظهار زر الموبايل */
    .sh-nav, .sh-tools {
        display: none !important;
    }
    .sh-mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .sh-hamburger {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: #f8fafc;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
        cursor: pointer;
    }
    .sh-hamburger-line {
        width: 20px;
        height: 2px;
        background: #0f172a;
        border-radius: 2px;
    }
}

/* القائمة الجانبية (Drawer) */
.sh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.sh-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sh-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(28px);
    border-left: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: -15px 0 45px rgba(15, 23, 42, 0.1);
    z-index: 9999;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sh-drawer.is-open {
    right: 0;
}

.sh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.sh-drawer-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    border: none;
}

.sh-drawer-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sh-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}
.sh-drawer-link.is-active {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(168, 85, 247, 0.08));
    border-color: rgba(66, 133, 244, 0.2);
    color: #2563eb;
}
.sh-drawer-link-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 8px;
    color: #64748b;
}
.sh-drawer-link.is-active .sh-drawer-link-icon {
    background: rgba(66, 133, 244, 0.1);
    color: #2563eb;
}
.sh-drawer-tools {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
}
.sh-drawer-tools-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 12px;
}
