/* Container principale */
.iva-wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Upload Form Styles */
.upload-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.upload-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.upload-description {
    color: #7f8c8d;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.upload-section {
    margin-top: 20px;
}

.file-input-container {
    margin-bottom: 20px;
}

.file-input {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #2980b9;
    background-color: #e3f2fd;
}

.file-requirements {
    margin-top: 10px;
    text-align: center;
}

.file-requirements .fa-info-circle {
    color: #3498db;
    margin-right: 5px;
}

/* Progress Bar Styles */
.upload-progress-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

/* Button Styles */
.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.upload-btn, .cancel-btn, .action-btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.upload-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.upload-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

/* Success Page Styles */
.success-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.success-header {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 15px;
}

.success-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.document-metadata {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.metadata-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
}

.metadata-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.metadata-value {
    color: #2c3e50;
    font-size: 16px;
    word-break: break-all;
}

.reference-info {
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.reference-title {
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.reference-icon {
    margin-right: 10px;
    font-size: 20px;
}

.reference-box {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.reference-description {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.reference-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #3498db;
}

.copy-btn {
    margin-left: 10px;
    padding: 5px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #2980b9;
}

/* Error Page Styles */
.error-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.error-header {
    margin-bottom: 30px;
}

.error-icon {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.error-details, .error-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.details-title, .requirements-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.error-suggestions {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.error-suggestions li:before {
    content: "→ ";
    color: #e74c3c;
    font-weight: bold;
    margin-right: 5px;
}

.requirements-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.requirement-item {
    display: flex;
    align-items: center;
    color: #495057;
}

.requirement-icon {
    color: #27ae60;
    margin-right: 10px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iva-wizard-container {
        padding: 10px;
    }

    .upload-form-container,
    .success-container,
    .error-container {
        padding: 20px;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .upload-actions {
        flex-direction: column;
        align-items: center;
    }

    .reference-id {
        flex-direction: column;
        text-align: center;
    }

    .copy-btn {
        margin: 10px 0 0 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-form-container,
.success-container,
.error-container {
    animation: fadeIn 0.5s ease-out;
}
