/* ==========================================
   SIDEBAR PRINCIPAL
   ========================================== */
.dashboard-sidebar {
    width: 250px;
    height: 100vh;
    background-color: #1f1f2e;
    color: #eee;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    z-index: 1000;
}

/* Expansión suave al hover */
.dashboard-sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* sidebar encima del footer si hace falta */
}

/* ==========================================
   LOGO / BRAND
   ========================================== */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    background-color: #272738;
    font-weight: 700;
    font-size: 1.25rem;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.sidebar-brand img {
    height: 40px;
    width: 40px;
    transition: transform 0.3s ease;
}

.sidebar-brand:hover img {
    transform: rotate(15deg);
}

/* ==========================================
   NAVEGACIÓN PRINCIPAL
   ========================================== */
.sidebar-nav {
    flex: 1;
    margin-top: 2rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
}

.sidebar-link:hover {
    background-color: #2c2c3e;
    color: #4eaaff;
    transform: translateX(5px);
}

.sidebar-link.active {
    background-color: #4eaaff;
    color: #fff;
    font-weight: 600;
}

/* Íconos dentro del link */
.sidebar-link .icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   FOOTER / AVATAR
   ========================================== */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #2c2c3e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #272738;
    transition: background-color 0.2s ease;
}

.sidebar-footer:hover {
    background-color: #2c2c3e;
}

.sidebar-footer .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.sidebar-footer .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-footer:hover .avatar img {
    transform: scale(1.1);
}

.sidebar-footer .user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-footer .user-info .username {
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-footer .user-info .role {
    font-size: 0.75rem;
    color: #999;
}

/* ==========================================
   TOOLTIP / BADGE NOTIFICACIONES
   ========================================== */
.sidebar-link .badge {
    background-color: #ff4757;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.sidebar-link:hover .badge {
    transform: scale(1.1);
}

/* ==========================================
   ANIMACIONES Y TRANSICIONES
   ========================================== */
.sidebar-link,
.sidebar-footer,
.sidebar-brand {
    transition: all 0.25s ease-in-out;
}

.sidebar-link .icon {
    transition: color 0.25s ease;
}

/* ==========================================
   ESTADOS DESHABILITADOS
   ========================================== */
.sidebar-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================
   ELEMENTOS EXTRA FUTUROS
   ========================================== */
/* Placeholder para submenús */
.sidebar-submenu {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
}

.sidebar-link.expandable.active + .sidebar-submenu {
    display: flex;
}

/* ==========================================
   ESTILO GENERAL DE TEXTOS
   ========================================== */
.dashboard-sidebar,
.sidebar-link,
.sidebar-footer,
.sidebar-submenu {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}
