/* SIDEBAR OVERLAY */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
}

.sidebar-overlay.active {
    display: block;
}

/* HAMBURGER — hidden on desktop */

.mobile-menu-btn {
    display: none;
}

/* MOBILE — max 768px */

@media (max-width: 768px) {

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1.5px solid #e2e8f0;
        background: #f8fafc;
        cursor: pointer;
        color: #1e293b;
        font-size: 1.3rem;
        flex-shrink: 0;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-btn:hover {
        background: #f1f5f9;
    }

    .app-topbar {
        justify-content: flex-start;
        gap: 0;
    }

    .app-topbar__right {
        margin-left: auto;
    }

    #sidebar-container {
        width: 0 !important;
        min-width: 0 !important;
        position: static !important;
    }

    .app-content-wrap {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .app-sidebar {
        left: -300px !important;
        transition: left 0.28s ease !important;
    }

    .app-sidebar.mobile-open {
        left: 0 !important;
    }

    .app-brand-logo {
        max-width: 140px !important;
        height: auto !important;
    }

    .dash-stats,
    .dash-two-col,
    .charts-grid--2col {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .dash-greeting {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 24px 20px !important;
    }

    .plan-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .plan-table th,
    .plan-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* SMALL SCREENS — max 600px */

@media (max-width: 600px) {

    .form-divider {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 20px 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-back {
        text-align: center;
    }

    .avail-days-grid {
        gap: 6px;
    }

    .avail-day-toggle span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}