/* ===== CORRECCIÓN DE COLORES DEL MENÚ ===== */

/* Navbar principal - Fondo oscuro con buen contraste */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-bottom: 3px solid #3498db;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.navbar-brand:hover {
    color: #3498db !important;
}

/* Enlaces del navbar - Blanco con buen contraste */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #3498db !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #3498db !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Dropdowns - Fondo oscuro consistente */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    background: #2c3e50;
    border: 1px solid #34495e;
}

.navbar-nav .dropdown-item {
    color: #ecf0f1 !important;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    border-bottom: 1px solid #34495e;
}

.navbar-nav .dropdown-item:last-child {
    border-bottom: none;
}

.navbar-nav .dropdown-item:hover {
    background-color: #3498db !important;
    color: #ffffff !important;
    transform: translateX(5px);
}

.dropdown-header {
    color: #bdc3c7 !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.dropdown-divider {
    border-color: #34495e;
    opacity: 0.7;
}

/* Menú responsivo - Corrección para móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #2c3e50 !important;
        border-radius: 0.375rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
        border: 1px solid #34495e;
    }
    
    .navbar-nav .nav-link {
        color: #ecf0f1 !important;
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin: 0.125rem 0;
        border-left: 3px solid transparent;
    }
    
    .navbar-nav .nav-link:hover {
        color: #3498db !important;
        background: rgba(255, 255, 255, 0.1);
        border-left-color: #3498db;
    }
    
    .navbar-nav .dropdown-menu {
        background: #34495e !important;
        border: 1px solid #3d566e;
        box-shadow: none;
        margin: 0.5rem 0 0.5rem 1rem;
    }
    
    .navbar-nav .dropdown-item {
        color: #ecf0f1 !important;
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: #3498db !important;
        color: #ffffff !important;
    }
}

/* Notificaciones - Mejor contraste */
.notification-dropdown {
    max-width: 350px;
    min-width: 300px;
    background: #2c3e50;
    border: 1px solid #34495e;
}

.notification-item {
    white-space: normal;
    word-wrap: break-word;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    color: #ecf0f1 !important;
    border-bottom: 1px solid #34495e;
}

.notification-item:hover {
    background-color: #34495e !important;
    border-left-color: #3498db;
    color: #ffffff !important;
}

.notification-item .text-muted {
    color: #bdc3c7 !important;
}

/* Sidebar - Colores corregidos */
.sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    transition: all 0.3s;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link {
    color: #b7c0cd !important;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    margin: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: #ffffff !important;
    background: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
    color: #3498db;
}

.sidebar-heading {
    color: #95a5a6 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badges de notificación */
.navbar-nav .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.4em;
}

/* Iconos del navbar */
.navbar-nav .nav-link i {
    color: #3498db;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover i {
    color: #2980b9;
}

/* Toggler button mejorado */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Texto del usuario en dropdown */
.dropdown-item-text {
    color: #ecf0f1 !important;
}

.dropdown-item-text strong {
    color: #3498db !important;
}

.dropdown-item-text small {
    color: #bdc3c7 !important;
}

/* Enlaces de cerrar sesión */
.dropdown-item.text-danger {
    color: #e74c3c !important;
}

.dropdown-item.text-danger:hover {
    background-color: #e74c3c !important;
    color: #ffffff !important;
}
/* Estilos para el modal de logout */
#logoutModal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

#logoutModal .modal-header {
    border-bottom: 2px solid #f39c12;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

#logoutModal .modal-title {
    font-weight: 600;
}

#logoutModal .btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

#logoutModal .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

#logoutModal .btn-secondary {
    border: 2px solid #6c757d;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

/* Animación para el modal */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}