/**
 * Estilos específicos para el Módulo de Aplicación (Vacunador)
 * FASE 5 - TURNO-PVU
 */

/* ===== PANTALLA PRINCIPAL ===== */
.aplicador-main {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header con info del usuario */
.aplicador-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aplicador-header h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
}

.aplicador-header .user-info {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ===== PREDICCIÓN FIFO ===== */
.next-prediction {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.next-prediction .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.next-prediction .folio-display {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.next-prediction .patient-info {
    font-size: 1.1rem;
    margin-top: 0.75rem;
    opacity: 0.95;
}

.next-prediction .biologico-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin: 0.5rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== BOTONES DE ACCIÓN ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-aplicar {
    min-height: 70px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn-aplicar:active {
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn-aplicar-srp {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.btn-aplicar-sr {
    background: linear-gradient(135deg, #a569bd, #8e44ad);
    color: white;
}

.btn-aplicar-vph {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    min-height: 50px;
    font-size: 1rem;
}

.btn-saltar {
    background: #3498db;
    color: white;
    min-height: 50px;
}

.btn-manual {
    background: #7f8c8d;
    color: white;
    font-size: 0.9rem;
    min-height: 45px;
}

/* ===== TECLADO MANUAL ===== */
.teclado-manual {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
}

.teclado-manual h3 {
    margin-top: 0;
    color: var(--text-color);
}

.input-folio {
    width: 100%;
    padding: 1rem;
    font-size: 2rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

.input-folio:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.numpad-btn {
    padding: 1.5rem;
    font-size: 1.5rem;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.numpad-btn:active {
    background: #d5dbdb;
    transform: scale(0.95);
}

.numpad-btn.zero {
    grid-column: 2;
}

.numpad-btn.backspace {
    background: #e74c3c;
    color: white;
    grid-column: 3;
}

/* ===== HISTORIAL DE FICHAS APLICADAS ===== */
.historial {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.historial h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.historial-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.historial-item {
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.historial-item:last-child {
    border-bottom: none;
}

.historial-item .folio {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
}

.historial-item .biologico {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.historial-item .time {
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* ===== ESTADO VACÍO ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h2 {
    color: #95a5a6;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #bdc3c7;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== CONFIRMACIÓN ===== */
.confirmacion-aplicacion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
}

.confirmacion-aplicacion h3 {
    margin-top: 0;
    color: var(--success-color);
}

.confirmacion-aplicacion .check-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .next-prediction .folio-display {
        font-size: 2.5rem;
    }

    .btn-aplicar {
        min-height: 60px;
        font-size: 1.1rem;
    }

    .input-folio {
        font-size: 1.5rem;
    }
}
