/**
 * CONTROL_TRABAJOS — Popups & Feedback Styles
 * Ventanas emergentes animadas de 1 segundo para Entrada (Verde) y Salida (Rojo)
 */

.feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.feedback-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.feedback-card {
    width: 90%;
    max-width: 580px;
    border-radius: 28px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.feedback-overlay.active .feedback-card {
    transform: scale(1);
}

/* ==========================================================================
   ESTILO VERDE: ENTRADA
   ========================================================================== */
.feedback-card.entry {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
    border-color: rgba(110, 231, 183, 0.5);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   ESTILO AZUL CELESTE / CYAN: TRASLADO AUTOMÁTICO DE ZONA
   ========================================================================== */
.feedback-card.transfer {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #0369a1 100%);
    border-color: rgba(125, 211, 252, 0.6);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.5);
}

/* ==========================================================================
   ESTILO ROJO: SALIDA
   ========================================================================== */
.feedback-card.exit {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #991b1b 100%);
    border-color: rgba(252, 165, 165, 0.5);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   ESTILO INACTIVO: DENEGADO
   ========================================================================== */
.feedback-card.inactive {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #450a0a 100%);
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: 0 20px 50px rgba(185, 28, 28, 0.6);
}

/* ==========================================================================
   ESTILO ADVERTENCIA / ERROR
   ========================================================================== */
.feedback-card.error {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
    border-color: rgba(253, 230, 138, 0.5);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   ELEMENTOS INTERNOS DEL POPUP
   ========================================================================== */
.feedback-icon-box {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    animation: bounceIn 0.4s ease;
}

.feedback-icon-box svg {
    width: 54px;
    height: 54px;
    fill: currentColor;
}

.feedback-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feedback-name {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feedback-meta {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 8px;
}

.feedback-extra {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Indicadores de Horas Acumuladas en Popup */
.feedback-accumulated {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.accum-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1.05rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.accum-pill .pill-label {
    opacity: 0.85;
    font-size: 0.95rem;
}

.accum-pill .pill-value {
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

/* Barra de progreso de 1 segundo */
.feedback-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    width: 100%;
    transform-origin: left;
}

.feedback-overlay.active .feedback-timer-bar {
    animation: timerProgress 1s linear forwards;
}

@keyframes timerProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
