/* ================= SIDEBAR MENU STYLES ================= */

.sidebar-toggle-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9998;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sidebar-menu-header h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.25rem;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu-content {
    padding: 1rem;
    background: transparent;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.sidebar-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
}

.sidebar-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-menu-item-text {
    flex: 1;
}

.sidebar-badge {
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 100%;
        right: -100%;
    }
    
    .sidebar-toggle-btn {
        position: fixed;
        width: 36px;
        height: 36px;
        top: 8rem;
        right: calc(-2.2rem + 36px + 8px); /* Position next to mobile-menu-btn: container padding + button width + small gap */
        z-index: 9998;
    }
    
    /* Adjust if header has different padding */
    .header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

