/* ==========================================================================
   LAYOUT.CSS - Sidebar, Topbar & Navigation Structure
   Spotlight — Menú Lateral Carbón Oscuro & Topbar Blanco Marfil
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sidebar (Menú Lateral en Carbón Oscuro)
   -------------------------------------------------------------------------- */
.vs-sidebar {
    background-color: var(--sl-navy);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 100vh;
    width: 270px;
    min-width: 270px;
    transition: left 0.25s ease;
    z-index: 1045;
    color: var(--sl-text-on-dark);
}

.vs-sidebar-dark {
    background-color: var(--sl-navy) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 991.98px) {
    .vs-sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        bottom: 0;
    }
    .vs-sidebar.show {
        left: 0;
        box-shadow: 0 10px 30px rgba(41, 37, 42, 0.45);
    }
    .vs-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(41, 37, 42, 0.6);
        z-index: 1040;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .vs-sidebar-overlay.show {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Sidebar Navigation Links
   -------------------------------------------------------------------------- */
.vs-nav-link {
    color: var(--sl-text-on-dark-muted) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.65rem 0.95rem;
    border-radius: var(--sl-radius-md);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.vs-nav-link i {
    font-size: 1.15rem;
    color: var(--sl-text-on-dark-muted);
    transition: color 0.18s ease;
}

.vs-nav-link:hover {
    background-color: rgba(246, 231, 235, 0.08);
    color: #ffffff !important;
}

.vs-nav-link:hover i {
    color: var(--sl-accent);
}

/* Ítem Activo: fondo borgoña translúcido con punto en rosa empolvado */
.vs-nav-link.active {
    background: linear-gradient(90deg, rgba(127, 29, 63, 0.45) 0%, rgba(217, 140, 154, 0.15) 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-left: 3px solid var(--sl-accent);
}

.vs-nav-link.active i {
    color: var(--sl-accent) !important;
}

.vs-nav-link.active::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--sl-accent);
    box-shadow: 0 0 6px rgba(217, 140, 154, 0.6);
}

/* --------------------------------------------------------------------------
   Topbar (Superficie Blanco Marfil, Limpia y Refinada)
   -------------------------------------------------------------------------- */
.vs-topbar {
    background-color: var(--sl-surface) !important;
    border-bottom: 1px solid var(--sl-border);
    padding: 0.85rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   Brand Logo
   -------------------------------------------------------------------------- */
.vs-brand-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}
