/* ===============================
   NAVBAR STYLES - MODO INTERMEDIO
   =============================== */

.navbar-dashboard {
    background-color: #60a5fa;
}

#main-navbar {
    background: #60a5fa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-title {
    font-size: 21px;
    font-weight: 500;
    color: #f7fafc !important;
    letter-spacing: -0.3px;
}

/* ===============================
   ICONO DE USUARIO
   =============================== */

#userDropdown .material-icons {
    font-size: 32px !important; 
    color: #f7fafc !important;
    margin-right: 2px; 
    vertical-align: middle;
    transition: all 0.3s ease;
}

#userDropdown:hover .material-icons {
    color: #63b3ed !important;
    transform: scale(1.1);
}

/* ===============================
   DROPDOWN MENU
   =============================== */

.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-header {
    color: #2d3748 !important;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.dropdown-header .material-icons {
    color: #4299e1 !important;
}

.dropdown-item {
    color: #2d3748 !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #edf2f7 !important;
    color: #2d3748 !important;
}

.dropdown-item .material-icons {
    color: #4a5568 !important;
    transition: color 0.3s ease;
}

.dropdown-item:hover .material-icons {
    color: #4299e1 !important;
}

/* Cerrar Sesión */
.dropdown-item.text-danger {
    color: #e53e3e !important;
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5 !important;
    color: #c53030 !important;
}

.dropdown-item.text-danger .material-icons {
    color: #e53e3e !important;
}

.dropdown-item.text-danger:hover .material-icons {
    color: #c53030 !important;
}

.dropdown-divider {
    border-color: #e2e8f0;
    margin: 0.5rem 0;
}

/* ===============================
   BOTÓN DE RETROCESO (MÓVIL)
   =============================== */

.btn-link.text-white {
    color: #f7fafc !important;
    transition: all 0.3s ease;
}

.btn-link.text-white:hover {
    color: #63b3ed !important;
    transform: translateX(-2px);
}

.btn-link.text-white .material-icons {
    color: #f7fafc !important;
}

.btn-link.text-white:hover .material-icons {
    color: #63b3ed !important;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    #userDropdown .material-icons {
        font-size: 30px !important;
    }
    
    .navbar-title {
        font-size: 18px;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-title {
        font-size: 16px;
    }
}

/* ===============================
   FIX: Iconos del dropdown menu
   =============================== */

/* Todos los iconos del dropdown deben ser del color del texto */
#main-navbar .dropdown-menu .material-icons,
#main-navbar .dropdown-menu i.fa, 
#main-navbar .dropdown-menu i.fas {
    color: #4a5568 !important;
}

/* El icono de cerrar sesión debe ser rojo */
#main-navbar .dropdown-menu .text-danger .material-icons {
    color: #e53e3e !important;
}

/* Hover en cerrar sesión */
#main-navbar .dropdown-menu .text-danger:hover .material-icons {
    color: #c53030 !important;
}