/* MÓDULO DE REVISIÓN DE LLEGADAS */

.llegadas-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.llegadas-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Indicadores de estado en la tarjeta */
.llegadas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #6c757d; /* Default pending state color */
    transition: background 0.25s ease;
}

.llegadas-card.state-pending::before {
    background: #0d6efd; /* Azul para pendientes */
}

.llegadas-card.state-correct {
    background: #f4faf6 !important;
    border-color: #a3cfbb !important;
}

.llegadas-card.state-correct::before {
    background: #198754; /* Verde para correcto */
}

.llegadas-card.state-incorrect {
    background: #fff8f8 !important;
    border-color: #f5c2c7 !important;
}

.llegadas-card.state-incorrect::before {
    background: #dc3545; /* Rojo para valoración incorrecta */
}

/* Elementos de la lista de verificación (checklist badge/pills) */
.checklist-badge {
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    color: #495057;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.checklist-badge:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.checklist-badge.checked {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.1);
}

.checklist-badge.checked i {
    color: #2e7d32;
}

/* Animaciones para cambio de estado */
@keyframes fadeOutToRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(50px); }
}

@keyframes fadeInFromLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.animate-move-out {
    animation: fadeOutToRight 0.25s forwards;
}

.animate-move-in {
    animation: fadeInFromLeft 0.25s forwards;
}

/* Tabs visuales estilizados */
.llegadas-tab-btn {
    position: relative;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #6c757d;
    transition: all 0.25s ease;
}

.llegadas-tab-btn.active {
    color: #0d6efd;
}

.llegadas-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #0d6efd;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.llegadas-tab-btn.active::after {
    width: 80%;
}

/* Panel de pegar datos */
.import-panel-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

.btn-status-toggle {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

/* Buscador */
.search-wrapper-llegadas {
    max-width: 450px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper-llegadas input {
    border-radius: 30px;
    padding-left: 40px;
    background: #f8f9fa;
    border-color: rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    width: 100%;
}

.search-wrapper-llegadas input:focus {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

.search-wrapper-llegadas i {
    position: absolute !important;
    top: 50% !important;
    left: 15px !important;
    transform: translateY(-50%) !important;
    color: #6c757d !important;
    
    /* Reset card-header i styles */
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-right: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Estilos de alerta para el reporte de impresión */
.print-alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 0.95rem;
}
.print-alert-warning {
    background-color: #fff3cd !important;
    border: 1px solid #ffe69c !important;
    color: #664d03 !important;
}
.print-alert-danger {
    background-color: #f8d7da !important;
    border: 1px solid #f5c2c7 !important;
    color: #842029 !important;
}
.print-alert-success {
    background-color: #d1e7dd !important;
    border: 1px solid #badbcc !important;
    color: #0f5132 !important;
}
.print-badge-modified {
    font-size: 0.75rem;
    background-color: #ffc107 !important;
    color: #000 !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.checklist-badge.incorrect-check {
    background: #fff5f5 !important;
    border-color: #feb2b2 !important;
    color: #c53030 !important;
    box-shadow: 0 2px 4px rgba(197, 48, 48, 0.1) !important;
}

.checklist-badge.incorrect-check i {
    color: #c53030 !important;
}

/* List counts badges */
.badge-count-pill {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 700;
}

.badge-count-pending { background: #cfe2ff; color: #084298; }
.badge-count-correct { background: #d1e7dd; color: #0f5132; }
.badge-count-incorrect { background: #f8d7da; color: #842029; }

/* Estilos de impresión para el módulo */
@media print {
    /* Ocultar el layout principal y mostrar solo el área de reporte */
    #app-layout, #global-error-box, .toast-container, #security-initial-loader {
        display: none !important;
    }
    #llegadas-print-area {
        display: block !important;
    }
    .no-print {
        display: none !important;
    }
}

.print-only {
    display: none;
}

@keyframes group-warning-blink {
    0% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(255, 152, 0, 0); }
    100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.badge-group-warning {
    background-color: #ff9800 !important;
    color: #ffffff !important;
    border: 1px solid #e65100 !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    animation: group-warning-blink 1.5s infinite ease-in-out;
}

