/* ============================================================
   SIDEBAR — Aurora floating card
   ============================================================ */

#sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    z-index: 10;
    padding: 12px;
}

.sidebar-inner {
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 22px 22px 6px;
}
.sidebar-header .logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    line-height: 1;
}
.sidebar-header .logo-accent { color: var(--accent-warm); }
.sidebar-header .logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 14px 12px 8px;
    overflow-y: auto;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.08); border-radius: 4px; }

.nav-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 14px 14px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 2px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
}
.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}
.nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}
.nav-item.active {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.15);
    font-weight: 600;
}

.nav-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px;
}
.nav-badge.new   { background: rgba(156, 184, 155, 0.2); color: #5a8a58; }
.nav-badge.count { background: rgba(232, 165, 152, 0.2); color: #b85a4a; }
.nav-badge.warm  { background: rgba(196, 149, 106, 0.2); color: #a07a4a; }
.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

/* User card */
.sidebar-user-card {
    margin: 12px 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--accent-warm), #d4a07a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(196, 149, 106, 0.25);
}
.sidebar-user-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}
.sidebar-user-logout {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: white;
    width: 34px; height: 34px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-user-logout:hover { background: rgba(255, 255, 255, 0.28); }

/* Sidebar filter block (for "Filial filtri" like in screenshot) */
.sidebar-filter {
    padding: 0 14px 8px;
}
.sidebar-filter .form-select {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
    width: 100%;
}

@media (max-width: 900px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    #sidebar.open { transform: translateX(0); }
}
