/* ================================================
   BARRA DE INFORMACIÓN DE SESIÓN - UX/UI MEJORADO
   ================================================ */

.session-info-bar {
    background: linear-gradient(135deg, #233554 0%, #4e6e8e 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 0 0 20px 20px;
    margin-bottom: 1rem;
}

.session-info-bar.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse-warning 2s ease-in-out infinite;
}

.session-info-bar.critical {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    animation: pulse-critical 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
    }

    50% {
        box-shadow: 0 4px 35px rgba(245, 87, 108, 0.7);
    }
}

@keyframes pulse-critical {
    0%, 100% {
        box-shadow: 0 4px 30px rgba(250, 112, 154, 0.6);
    }

    50% {
        box-shadow: 0 4px 45px rgba(250, 112, 154, 0.9);
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .user-info {
        justify-content: flex-start;
    }
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.session-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.timer-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.timer-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.session-status {
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .session-status {
        justify-content: flex-end;
    }
}

.status-alert {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-alert.active {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.status-alert.warning {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    animation: blink-warning 2s ease-in-out infinite;
}

.status-alert.critical {
    background: rgba(244, 67, 54, 0.9);
    color: white;
    animation: blink-critical 1s ease-in-out infinite;
}

@keyframes blink-warning {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes blink-critical {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Alertas con bordes redondeados */
.rounded-4 {
    border-radius: 20px !important;
}

.alert {
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .session-info-bar {
        border-radius: 0;
    }

    .session-timer {
        padding: 0.5rem 1rem;
        margin: 0.5rem 0;
    }

    .timer-value {
        font-size: 1.1rem;
    }

    .user-name {
        font-size: 1rem;
    }

    .status-alert {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .session-timer {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
    }

    .timer-label {
        font-size: 0.8rem;
    }

    .timer-value {
        font-size: 1rem;
    }
}
