.validation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.upload-section {
    margin: 2rem 0;
}

/* Processing Indicator */
.processing-indicator {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066CC;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-status {
    margin: 1rem 0;
}

.status-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.status-detail {
    color: #666;
    margin: 0.5rem 0;
}

/* Alert Styles */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.alert-error {
    background: #fee;
    border: 2px solid #fcc;
    color: #c53030;
}

.alert-error h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.alert-info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    color: #1565c0;
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.validation-section {
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 2px solid #dee2e6;
}

.schema-header {
    background: #e3f2fd;
    color: #1565c0;
}

.business-rule-header {
    background: #fff3e0;
    color: #e65100;
}

/* Action Section */
.action-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #0066CC;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .validation-container {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }
}

/* --- ValidationResults --- */
.validation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.version-summary {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.version-summary .card-header {
    padding: 1rem 1.5rem;
}

.version-summary .card-body {
    padding: 1.5rem;
}

.version-summary dl.row {
    margin-bottom: 0;
}

.version-summary dt {
    font-weight: 600;
    color: #495057;
    padding-top: 0.5rem;
}

.version-summary dd {
    padding-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.validation-section {
    margin-bottom: 2rem;
}

/* .section-header is defined once, above. ValidationResults.razor.css carried a second, conflicting
   definition; merging both stylesheets stacked them and the later one silently overrode the
   colour set by .schema-header / .business-rule-header. */

.section-header i {
    margin-right: 0.5rem;
}

.action-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
}

.action-section .btn {
    min-width: 200px;
}

.alert {
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.alert-heading {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .validation-container {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .section-header {
        font-size: 1.25rem;
    }

    .version-summary dd,
    .version-summary dt {
        font-size: 0.9rem;
    }

    .action-section {
        flex-direction: column;
    }

    .action-section .btn {
        width: 100%;
    }
}

/* No dark-mode block here on purpose. ValidationResults.razor.css carried a
   prefers-color-scheme: dark block, but the app has no dark theme - panels and page background
   stay white - so it only turned headings light grey on a white background. Blazor's scoping hid
   the damage on the upload pages; a shared stylesheet does not. */

/* --- FileUploader --- */
.file-uploader {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.upload-zone.dragging {
    border-color: #3182ce;
    background-color: #bee3f8;
    border-width: 3px;
}

.file-input-hidden {
    display: none;
}

.upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.upload-icon {
    color: #4299e1;
    margin-bottom: 1rem;
}

.upload-text .primary-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.upload-text .secondary-text {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1rem;
}

.upload-restrictions {
    margin-top: 1rem;
}

.upload-restrictions small {
    color: #a0aec0;
    font-size: 0.875rem;
}

.file-selected-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-icon {
    color: #48bb78;
    flex-shrink: 0;
}

.file-details {
    flex-grow: 1;
    text-align: left;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.875rem;
    color: #718096;
}

.btn-remove {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover:not(:disabled) {
    background-color: #fed7d7;
}

.btn-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-progress {
    width: 100%;
    padding: 0 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
    text-align: center;
}

.alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-message {
    flex-grow: 1;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-zone {
        padding: 1.5rem;
        min-height: 180px;
    }

    .upload-text .primary-text {
        font-size: 1.1rem;
    }

    .upload-text .secondary-text {
        font-size: 0.9rem;
    }

    .file-info {
        padding: 0.75rem;
    }

    .file-icon svg {
        width: 32px;
        height: 32px;
    }

    .file-name {
        font-size: 0.9rem;
    }
}

/* Accessibility */
.upload-zone:focus-within {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}
