/* ═════════════ SIDEBAR ════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--dark-c);
    display: flex;
    flex-direction: column;
    z-index: 500;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition);
}

/* Brand */
.sidebar-brand {
    margin: 20px auto 15px;
    padding: 0;
    border-bottom: 1px solid #fff;
}

.brand-logo {
    display: flex;
    margin: 0 auto 15px;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.brand-logo img {
    width: 30%;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    padding: 15px 0;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 30px;
    color: #fff;
    transition: all 0.18s;
    cursor: pointer;
    position: relative;
    flex-wrap: wrap;
    row-gap: 0;
    margin: 5px 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    box-shadow: 0.5px 1px 6px rgb(255 255 255);
}

.nav-link.active {
    background: rgba(245, 166, 35, 0.15);
    color: #fff;
     box-shadow: 0.5px 1px 6px rgb(255 255 255);
}

.nav-link.active .nav-icon {
    color: var(--orange);
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgb(255 255 255 / 18%);
    transition: color 0.18s;
    margin: 2px 0 -8px 10px;
}

.nav-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    flex: 1;
}

.nav-hint {
    width: 100%;
    padding-left: 52px;
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-top: -2px;
}

.nav-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    background: var(--orange);
    color: #fff;
    padding: 3px 6.5px;
    border-radius: 20px;
    line-height: 1.4;
    flex-shrink: 0;
    margin: -56px 0 0 7px;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid #fff;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-shrink: 0;
}

.sf-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sf-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--orange), #ffbf00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    color: #fff;
    flex-shrink: 0;
}

.sf-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sf-role {
    display: block;
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.45);
}

.sf-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sf-logout {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.18s;
    flex-shrink: 0;
}

.sf-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 35, 50, 0.5);
    z-index: 400;
}

.sidebar-overlay.active {
    display: block;
}