/* ============================================================
   SIDEBAR LA OLA - DISEÑO CON LOGO
   ============================================================ */

:root {
    /* Colores del logo La Ola */
    --laola-pink: #D4A5BA;
    --laola-pink-dark: #B88A9F;
    --laola-pink-light: #E8C5D6;
    --laola-teal: #2C7A7B;
    --laola-teal-light: #4FD1C5;
    --laola-black: #1A1A1A;
    --purple-main: #C29FD9;
    --purple-dark: #A88BC4;
    --purple-ola: #4A1161;
    --purple-laola: #770088;
    --purple-soft: #F3EBFF;
    
    /* Sidebar */
    --sidebar-bg: linear-gradient(180deg, #D4A5BA 0%, #C998AE 100%);
    --sidebar-width: 260px;
    
    /* Estados del menú */
    --menu-hover: rgba(255, 255, 255, 0.15);
    --menu-active: rgba(255, 255, 255, 0.25);
    --menu-text: #FFFFFF;
    --menu-text-active: #FFFFFF;
    
    /* Badge */
    --badge-bg: #2C7A7B;
    --badge-text: #FFFFFF;
}

/* ============================================
   SIDEBAR CONTAINER
   ============================================ */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


/* ============================================
   LOGO LA OLA (CIRCULAR CON BORDE LGBT)
   ============================================ */
.sidebar-brand {
    padding: 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}

.sidebar-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    position: relative;
}

/* Contenedor del logo con borde LGBT */
.sidebar-logo-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(
        to bottom,
        #E40303 0%,      /* Rojo */
        #FF8C00 16.66%,  /* Naranja */
        #FFED00 33.33%,  /* Amarillo */
        #008026 50%,     /* Verde */
        #24408E 66.66%,  /* Azul */
        #732982 83.33%   /* Violeta */
    );
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-logo-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #D4A5BA; /* Borde interno del color del sidebar */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #D4A5BA;
    padding: 6px;
    display: block;
}

.sidebar-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Efecto de brillo al hover */
.sidebar-logo-wrapper:hover {
    box-shadow: 0 6px 20px rgba(227, 3, 3, 0.4);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizado */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ITEMS DEL MENÚ (SIN DESPLAZAMIENTO)
   ============================================ */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    color: #4a1161;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Icono */
.sidebar-nav-item i {
    font-size: 1.2rem;
    min-width: 24px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Texto */
.sidebar-nav-item span {
    flex: 1;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

/* ============================================
   ESTADOS DEL MENÚ (SIN DESPLAZAMIENTO)
   ============================================ */

/* Hover */
.sidebar-nav-item:hover {
    background: var(--menu-hover);
    color: var(--menu-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-nav-item:hover i,
.sidebar-nav-item:hover span {
    opacity: 1;
}

/* Active (página actual) */
.sidebar-nav-item.active {
    background: var(--menu-active);
    color: var(--menu-text-active);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--laola-teal);
}

.sidebar-nav-item.active i {
    color: var(--laola-teal-light);
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-nav-item.active span {
    opacity: 1;
}

/* ✅ ELIMINAR DESPLAZAMIENTO EN CLICK */
.sidebar-nav-item:active {
    /* SIN transform aquí */
}

/* Efecto de onda al hacer clic (opcional - puedes comentar si no te gusta) */
.sidebar-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sidebar-nav-item:active::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   ITEM DESTACADO (Nueva Entrevista)
   ============================================ */
.sidebar-nav-item-highlight {
    background: rgba(44, 122, 123, 0.2);
    border: 2px solid var(--laola-teal-light);
}

.sidebar-nav-item-highlight:hover {
    background: rgba(44, 122, 123, 0.3);
    border-color: var(--laola-teal);
}

.sidebar-nav-item-highlight.active {
    background: rgba(44, 122, 123, 0.4);
    border-color: var(--laola-teal);
}

/* ============================================
   ITEM DESHABILITADO (Pronto)
   ============================================ */
.sidebar-nav-item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   BADGES
   ============================================ */
.sidebar-badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-badge-soon {
    background: rgba(255, 255, 255, 0.3);
    color: var(--menu-text);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .dashboard-sidebar {
        width: 70px;
    }
    
    .sidebar-brand {
        padding: 1rem 0.5rem;
    }
    
    .sidebar-logo-img {
        max-width: 45px; 
    }
    
    .sidebar-nav {
        padding: 1rem 0.5rem;
    }
    
    .sidebar-nav-item span {
        display: none;
    }
    
    .sidebar-nav-item {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .sidebar-nav-item i {
        margin: 0;
        font-size: 1.3rem;
    }
    
    .sidebar-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        min-width: 18px;
        height: 18px;
        padding: 0;
        font-size: 0.65rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-nav-item.active {
        border-left: none;
        border-bottom: 4px solid var(--laola-teal);
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }
}


/* ============================================
   AJUSTE DEL CONTENIDO PRINCIPAL
   ============================================ */
.dashboard-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

@media (max-width: 992px) {
    .dashboard-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        margin-left: 0;
    }
}

/* ============================================
   SIDEBAR DIVIDER (Agregar a sidebar.css)
   ============================================ */

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0.5rem;
}




/* Badge de alertas en sidebar con animación */
.sidebar-badge-danger {
    background: #DC2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
    animation: pulse-danger 2s infinite;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

@keyframes pulse-danger {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}