/**
 * Utilidades Flotas - Estilos Descarga Masiva PDFs
 * Version: 1.0.0
 * 
 * Estilos para el modal de progreso
 * NOTA: Botones usando clases de Flatsome (no hay estilos personalizados)
 */

/* ==========================================================================
   Contenedor Principal
   ========================================================================== */
.uf-bulk-pdf-container {
    margin: 20px 0;
}

.uf-bulk-icon {
    font-size: 20px;
    line-height: 1;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.uf-bulk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: uf-modal-fade-in 0.3s ease;
}

@keyframes uf-modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.uf-bulk-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: uf-modal-slide-in 0.3s ease;
    position: relative;
}

@keyframes uf-modal-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.uf-bulk-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   Información de Progreso
   ========================================================================== */
.uf-bulk-progress-info {
    margin-bottom: 20px;
    text-align: center;
}

.uf-bulk-progress-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.uf-bulk-status {
    font-weight: 600;
    color: #0073aa;
    font-size: 15px;
}

.uf-bulk-counter {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.uf-bulk-counter span {
    font-weight: 700;
}

.uf-bulk-time {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Barra de Progreso
   ========================================================================== */
.uf-bulk-progress-bar {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.uf-bulk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005177);
    transition: width 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.uf-bulk-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: uf-progress-stripes 1s linear infinite;
}

@keyframes uf-progress-stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 40px 0;
    }
}

.uf-bulk-progress-percent {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

/* ==========================================================================
   Mensajes de Error
   ========================================================================== */
.uf-bulk-error {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
    animation: uf-error-shake 0.5s ease;
}

@keyframes uf-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.uf-error-message {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .uf-bulk-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .uf-bulk-modal-content h3 {
        font-size: 18px;
    }
    
    .uf-bulk-progress-info p {
        font-size: 13px;
    }
    
    .uf-bulk-counter {
        font-size: 16px;
    }
    
    .uf-bulk-progress-bar {
        height: 20px;
    }
}

/* ==========================================================================
   Estados de Carga
   ========================================================================== */
.uf-bulk-loading {
    pointer-events: none;
    opacity: 0.7;
}

.uf-bulk-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: uf-spin 1s linear infinite;
}

@keyframes uf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Mejoras de Accesibilidad
   ========================================================================== */
.button:focus {
    outline: 2px solid #005177;
    outline-offset: 2px;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .uf-bulk-modal,
    .uf-bulk-modal-content,
    .uf-bulk-progress-fill,
    .uf-bulk-error {
        animation: none;
    }
    
    .uf-bulk-progress-fill::after {
        animation: none;
        background: none;
    }
}