/**
 * Archivo: ActualizarScore.css
 * Ruta: static\css\SupyCtrol\IngDeControl\ActualizarScore.css
 * Descripción: Estilos para módulo de actualización del Score
 * Autor: Equipo de Desarrollo IGSA
 * Fecha: 2025
 */

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.container-fluid {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   CARD PRINCIPAL
   ======================================== */

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.card-header h4 {
    margin-bottom: 5px;
}

.card-header small {
    opacity: 0.9;
}

.card-body {
    padding: 30px;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
}

/* ========================================
   BOTÓN PRINCIPAL
   ======================================== */

#btnActualizarScore {
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#btnActualizarScore:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

#btnActualizarScore:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#btnActualizarScore i {
    margin-right: 8px;
}

/* ========================================
   SPINNER DE CARGA
   ======================================== */

#loadingSpinner {
    width: 2.5rem;
    height: 2.5rem;
    vertical-align: middle;
}

/* ========================================
   MENSAJES Y ALERTAS
   ======================================== */

.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #17a2b8;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-success {
    border-left-color: #28a745;
}

#mensajeProgreso .alert {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   TEXTAREA DE RESUMEN
   ======================================== */

#txtResumen {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    resize: vertical;
    line-height: 1.6;
    padding: 15px;
    white-space: pre-wrap;
}

#txtResumen:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* ========================================
   TARJETAS DE ESTADÍSTICAS
   ======================================== */

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 28px;
    color: white;
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stat-content {
    flex-grow: 1;
}

.stat-content h6 {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-content h3 {
    margin: 5px 0 0 0;
    color: #212529;
    font-size: 32px;
    font-weight: 700;
}

/* ========================================
   ITEMS DE INFORMACIÓN
   ======================================== */

.info-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.info-item i {
    margin-right: 8px;
    font-size: 18px;
}

.info-item strong {
    margin-right: 8px;
}

.info-item span {
    color: #495057;
    font-weight: 500;
}

/* ========================================
   ANIMACIONES
   ======================================== */

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVIDAD
   ======================================== */

@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    #btnActualizarScore {
        font-size: 16px;
        padding: 12px 25px;
        width: 100%;
    }
    
    #txtResumen {
        font-size: 11px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
}

/* ========================================
   SCROLLBAR PERSONALIZADO
   ======================================== */

#txtResumen::-webkit-scrollbar {
    width: 10px;
}

#txtResumen::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#txtResumen::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}

#txtResumen::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

hr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}