/* ========================================
   SIDEBAR NAVIGATION COMPONENT
   ======================================== */

/* Hamburger button in topnav */
.sb-hamburger {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: background 0.15s ease;
}

.sb-hamburger:hover {
    background: rgba(255,255,255,0.15);
}

/* Backdrop overlay */
.sb-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sb-backdrop.sb-open {
    opacity: 1;
    visibility: visible;
}

/* Sidebar drawer */
.sb-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 10011;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.sb-drawer.sb-open {
    transform: translateX(0);
}

/* Drawer header with brand + close */
.sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    flex-shrink: 0;
}

.sb-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sb-brand-img {
    height: 28px;
    width: auto;
}

.sb-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.sb-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Section headers */
.sb-section-header {
    padding: 18px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sb-section-header:first-child {
    padding-top: 14px;
}

/* Nav links */
.sb-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.12s, border-color 0.12s;
    border-left: 3px solid transparent;
}

.sb-link:hover {
    background: #f5f7fa;
    color: #333;
}

.sb-link.sb-active {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
    border-left-color: #1565c0;
}

.sb-link.sb-featured {
    font-weight: 600;
    color: #1565c0;
}

.sb-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
    flex-shrink: 0;
}

.sb-link.sb-active i,
.sb-link.sb-featured i {
    color: #1565c0;
}

/* Queue badge in sidebar */
.sb-badge {
    background: #ff5252;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: auto;
}

/* Separator */
.sb-separator {
    height: 1px;
    background: #e9ecef;
    margin: 8px 16px;
}

/* Scrollbar styling */
.sb-drawer::-webkit-scrollbar {
    width: 4px;
}

.sb-drawer::-webkit-scrollbar-track {
    background: transparent;
}

.sb-drawer::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}
