/* === BARRA FLOTANTE DE PROGRESO === */
.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.progress-bar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.progress-bar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-title i {
    color: #00ff9d;
}

.progress-bar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'><path d='M8 10 L8 3.5 C8 2.3 9 1.5 10 1.5 C11 1.5 12 2.3 12 3.5 L12 11 L12 8 C12 7 13 6.3 14 6.3 C15 6.3 16 7 16 8 L16 12 L16 9.5 C16 8.5 17 7.8 18 7.8 C19 7.8 20 8.5 20 9.5 L20 16 C20 20 17 22.5 13.5 22.5 L11 22.5 C8.5 22.5 6.5 20.8 5.5 18.5 L3 12.5 C2.5 11.3 3.3 10.3 4.3 10.3 C5 10.3 5.5 10.6 5.8 11.1 L8 14 Z' fill='%23a445ff' stroke='white' stroke-width='1.2' stroke-linejoin='round'/></svg>") 6 1, pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.progress-bar-jobs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.progress-bar-jobs::-webkit-scrollbar {
    height: 4px;
}

.progress-bar-jobs::-webkit-scrollbar-track {
    background: transparent;
}

.progress-bar-jobs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Cada bloque de job individual */
.progress-job-block {
    min-width: 200px;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'><path d='M8 10 L8 3.5 C8 2.3 9 1.5 10 1.5 C11 1.5 12 2.3 12 3.5 L12 11 L12 8 C12 7 13 6.3 14 6.3 C15 6.3 16 7 16 8 L16 12 L16 9.5 C16 8.5 17 7.8 18 7.8 C19 7.8 20 8.5 20 9.5 L20 16 C20 20 17 22.5 13.5 22.5 L11 22.5 C8.5 22.5 6.5 20.8 5.5 18.5 L3 12.5 C2.5 11.3 3.3 10.3 4.3 10.3 C5 10.3 5.5 10.6 5.8 11.1 L8 14 Z' fill='%23a445ff' stroke='white' stroke-width='1.2' stroke-linejoin='round'/></svg>") 6 1, pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.progress-job-block:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.progress-job-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-job-thumb {
    width: 50px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.progress-job-title {
    font-size: 0.75rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Barra de progreso de 3 fases */
.progress-job-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.progress-job-bar .phase {
    height: 100%;
    flex: 1;
    transition: background 0.3s;
}

.progress-job-bar .phase.pending {
    background: rgba(255, 255, 255, 0.1);
}

.progress-job-bar .phase.active {
    background: #2196f3;
    animation: pulse 1s infinite;
}

.progress-job-bar .phase.complete {
    background: #4caf50;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Estados finales del bloque */
.progress-job-block.status-complete {
    border-color: #4caf50;
}

.progress-job-block.status-complete .progress-job-bar .phase {
    background: #4caf50;
}

.progress-job-block.status-partial {
    border-color: #ff9800;
}

.progress-job-block.status-partial .progress-job-bar .phase.complete {
    background: #ff9800;
}

.progress-job-block.status-error {
    border-color: #f44336;
}

.progress-job-block.status-error .progress-job-bar .phase {
    background: #f44336;
}

/* Footer cuando todo termina */
.progress-bar-footer {
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.progress-complete-msg {
    color: #4caf50;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Status badge pequeño en cada bloque */
.progress-job-status {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.progress-job-status.processing { 
    background: #2196f3; 
    color: #fff; 
}

.progress-job-status.complete { 
    background: #4caf50; 
    color: #fff; 
}

.progress-job-status.partial { 
    background: #ff9800; 
    color: #000; 
}

.progress-job-status.error { 
    background: #f44336; 
    color: #fff; 
}

/* Responsive */
@media (max-width: 768px) {
    .progress-bar-container {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .progress-bar-header {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        padding-right: 0;
        justify-content: space-between;
    }
    
    .progress-bar-jobs {
        width: 100%;
    }
    
    .progress-job-block {
        min-width: 160px;
        max-width: 160px;
    }
}






