/* Sidebar & Navigation */
.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--glass-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-item:hover,
.nav-item.active {
    background: var(--glass);
    color: var(--text-main);
}

.nav-item.active {
    border: 1px solid var(--glass-border);
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.details {
    display: flex;
    flex-direction: column;
}

.details .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.details .plan {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- MOBILE NAVIGATION --- */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.mobile-header .logo {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.mobile-menu-toggle {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        height: 60px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }

    .mobile-menu-toggle {
        background: #f1f5f9;
        color: #64748b;
        transition: all 0.2s ease;
    }

    .sidebar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 32px 24px;
        flex-direction: column;
        background: white;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        border-radius: 0 24px 24px 0;
        border: none;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar .logo,
    .sidebar-footer {
        display: flex !important;
    }

    .sidebar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        height: auto !important;
        gap: 8px !important;
    }

    .nav-item {
        width: 100%;
        flex-direction: row !important;
        padding: 12px 16px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        border-radius: 12px !important;
        background: transparent !important;
        border: none !important;
    }

    .nav-label {
        display: block !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
    }

    .nav-item .icon svg {
        width: 24px;
        height: 24px;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid #f1f5f9;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .bottom-nav-item.active {
        color: var(--primary);
    }

    .bottom-nav-item .icon svg {
        width: 22px;
        height: 22px;
    }

    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1999;
        display: none;
        backdrop-filter: blur(2px);
    }

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

.mobile-only-nav-item {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only-nav-item {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .sidebar {
        transform: none !important;
        position: relative !important;
        display: flex !important;
        width: 280px !important;
        height: 100vh !important;
    }
}