/* ========== UPLOAD INTÉGRÉ - CSS ========== */

/* Upload Badge */
.btn-upload-header {
    position: relative;
    padding: 12px 24px;
    background: var(--dark-900);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-header:hover {
    background: var(--dark-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 46, 42, 0.3);
}

.upload-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Upload Progress Overlay */
.upload-progress-overlay,
.analyze-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.upload-progress-card,
.analyze-progress-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    min-width: 400px;
    text-align: center;
}

.upload-progress-card h3,
.analyze-progress-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mint-400), var(--mint-600));
    transition: width 0.3s ease;
    border-radius: 6px;
}

.upload-progress-card p,
.analyze-progress-card p {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 600;
}

/* Washing Machine Animation */
.washing-machine {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 50%;
    border: 8px solid #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.washing-machine-drum {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent);
    border-radius: 50%;
    border: 4px dashed var(--mint-600);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Documents Queue Section */
.documents-queue-section {
    background: var(--mint-50);
    border: 1.5px solid var(--mint-400);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#queueText {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.queue-actions {
    display: flex;
    gap: 8px;
}

.btn-analyze-queue {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--mint-400), var(--mint-600));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-analyze-queue:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.btn-analyze-queue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-clear-queue {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-queue:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .upload-progress-card,
    .analyze-progress-card {
        min-width: 90%;
        padding: 24px;
    }

    .washing-machine {
        width: 80px;
        height: 80px;
    }

    .washing-machine-drum {
        width: 50px;
        height: 50px;
    }

    .queue-header {
        flex-direction: column;
        gap: 12px;
    }

    .queue-actions {
        width: 100%;
    }

    .btn-analyze-queue {
        flex: 1;
    }
}
