/*
 * Custom Styles - Control Escolar
 * Agrupa los estilos globales que previamente estaban embebidos en Vistas de Blade.
 */

/* Ajustes Base */
body {
    background-color: #f8f9fa;
}

/* Estilos para mejorar la apariencia de los iconos en la navbar */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

/* Open dropdown on hover on desktop */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu,
    .dropend:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-item:hover i {
    opacity: 1;
    color: #0d6efd;
}

/* Animaciones suaves */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-link:hover i {
    animation: iconPulse 0.6s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.05);
        margin-left: 1rem;
    }
}

/* Mejoras para el dropdown del usuario */
.navbar-nav .dropdown-menu-end {
    min-width: 200px;
}

.navbar-nav .dropdown-menu-end .dropdown-item {
    font-weight: 500;
}

/* Badge para notificaciones */
.nav-link .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

.piePagina {
    width: auto;
    height: 280px;
    background-color: #004A98;
    padding: 25px 50px 30px 50px;
}

.piePagina a {
    font-size: 20px !important;
    color: white !important;
    text-decoration: none !important;
}

.header a:hover,
.piePagina a:hover {
    text-decoration: underline !important;
}

.textoUASLP,
.textoUASLP a {
    color: white !important;
    font-size: 35px !important;
    margin-bottom: 0;
}

.circulo {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: white;
    margin: 2px !important;
}

.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.colorUniversidad {
    background-color: #004a98;
}

.colorUniversidadSecundario {
    background-color: #00b1e3;
}

@media (max-width: 992px) {
    .navbar .nav-link::after {
        display: none;
    }
    .dropdown-item:hover {
        transform: none;
    }
}
