/* Estilos para el botón de usuario autenticado y menú desplegable */
.btn-login {
    background: linear-gradient(135deg, #1a4b8c 0%, #0D47A1 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', 'Arial', sans-serif;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
    letter-spacing: 0.3px;
    position: absolute;
    top: 10px;
    right: 20px;
    overflow: hidden;
    z-index: 100;
    height: 40px;
}

/* Efecto de brillo al hover */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login i {
    margin-right: 0;
    font-size: 16px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2a6eda 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.3);
}

.btn-login.logged-in {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-login.logged-in:hover {
    background: linear-gradient(135deg, #34ce57 0%, #2dd4a4 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.user-dropdown {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 220px;
    z-index: 1001;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-info {
    background: #1a4b8c;
    color: white;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-role {
    text-transform: capitalize;
    font-size: 13px;
    opacity: 0.8;
}

.menu-options {
    padding: 10px 0;
}

.menu-options a, 
.menu-options button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.menu-options a:hover,
.menu-options button:hover {
    background-color: #f0f0f0;
}

.menu-options i {
    margin-right: 10px;
    color: #1a4b8c;
    width: 20px;
    text-align: center;
}

#logout-button-menu {
    color: #dc3545;
}

#logout-button-menu i {
    color: #dc3545;
}

/* Mostrar botón "Acceder" cuando no hay sesión iniciada */
#login-btn,
.btn-login {
    display: inline-flex !important;
}

/* Ocultar botón "Acceder" solo cuando hay sesión iniciada */
.user-logged-in #login-btn,
.user-logged-in .btn-login {
    display: none !important;
}

/* Responsive - Ajustes para móviles */
@media (max-width: 992px) {
    .btn-login {
        top: 8px;
        right: 15px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-login i {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .btn-login {
        top: 10px;
        right: 60px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .btn-login span {
        display: none;
    }
    
    .btn-login {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
        top: 10px;
        right: 55px;
    }
    
    .btn-login i {
        margin-right: 0;
    }
}
