/* inventory/shop/sidebar.css */

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 80vw;
    }
}

@media (max-width: 500px) {
    .sidebar {
        width: 90vw;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;

    background: linear-gradient(
        180deg,
        #000000 0%,
        #0b0f1a 100%
    ); /* 🔥 THIS WAS MISSING */

    border-right: 1px solid rgba(79, 70, 229, 0.35);
    color: white;

    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;

    z-index: 2000;
}

.sidebar.open {
    transform: translateX(0);
}
.close-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin: 10px;
}

/* overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 7998;
}

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

/* Sidebar Toggle Button */
.navbar .sidebar-toggle-btn {
    color: #c7d2fe !important;
    transition: all 0.2s ease;
}

.navbar .sidebar-toggle-btn:hover {
    color: #6366f1 !important;
    text-shadow: 0 0 8px rgba(99,102,241,0.6);
}
.sidebar-link.active {
    background-color: rgba(79, 70, 229, 0.18);
    border-left: 3px solid #4f46e5;
    color: #fff;
    font-weight: 600;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
}

.sidebar-link {
    display: block;
    padding: 8px 12px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: all 0.2s ease;
    background-color: transparent;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    
}

.sidebar-link:hover {
    background-color: #16181d83;
    text-decoration: none;
    color: #6366f1;
    border-left: 3px solid #4f46e5;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1500;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;   /* 🔥 THIS IS THE FIX */
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;   /* 🔥 Re-enable only when visible */
}
.brand-item {
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.brand-item:hover {
    background: rgba(255,255,255,0.08);
}

.brand-item input {
    cursor: pointer;
}