/* ============================================
   RESPONSIVE & DESKTOP LAYOUT (FIX)
   ============================================ */

/* Base Sidebar Styles (Ensure they exist) */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: var(--spacing-xl);
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

/* DESKTOP VIEW (Fixed Sidebar) */
@media (min-width: 769px) {
    .sidebar {
        left: 0 !important;
        transform: translateX(0) !important;
    }

    .main-content {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
    }

    .bottom-nav {
        display: none !important;
    }

    .mobile-header {
        display: none !important;
    }
}

/* MOBILE VIEW (Hamburger + Overlay) */
@media (max-width: 768px) {
    .sidebar {
        left: -280px !important;
        transform: translateX(-110%);
    }

    .sidebar.open {
        left: 0 !important;
        transform: translateX(0);
    }

    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 10px;
    }

    .bottom-nav {
        display: flex !important;
    }
}

/* Utilities */
.p-xl {
    padding: 2rem;
}

.p-lg {
    padding: 1.5rem;
}

.hidden {
    display: none !important;
}