body {
    font-family: Arial, sans-serif;
    margin: 40px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="file"],
select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

select {
    background-color: white;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

.model-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.results {
    margin-top: 30px;
    display: none;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.model-result {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.model-result img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.model-result h3 {
    margin-top: 0;
    color: #333;
}

.info-note {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #0056b3;
}

/* Metrics Page Styles */
.metrics-data {
    margin-top: 20px;
}

.metrics-summary {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.metric-card h5 {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}

.metrics-details {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
}

/* Navbar customization */
.navbar-brand {
    font-weight: bold;
    color: #007bff !important;
}

.nav-link.active {
    font-weight: bold;
}

/* Form styling for Bootstrap compatibility */
.form-control {
    margin-bottom: 15px;
}

/* Container adjustments for navbar */
body {
    margin: 0;
    padding: 0;
}

.container.mt-4 {
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure metrics results are visible when needed */
#metricsResults {
    margin-top: 30px;
}

#metricsResults.show {
    display: block !important;
}

/* Export Page Styles */
.export-data {
    margin-top: 20px;
}

.export-summary {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#exportResults {
    margin-top: 30px;
}

.form-text {
    font-size: 0.875em;
    color: #6c757d;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-success:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Navigation active state */
.nav-link.active {
    font-weight: bold;
    color: #007bff !important;
}

/* Alert styling improvements */
.alert {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Form improvements */
.form-check {
    margin-top: 15px;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 8px;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Export Controls Styling */
.export-controls {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    min-height: 60px;
}

.export-controls[style*="block"] {
    display: block !important;
    visibility: visible !important;
}

/* Force show when has show class */
.export-controls.show {
    display: block !important;
    visibility: visible !important;
}

.export-controls h5 {
    color: #495057;
    margin-bottom: 0;
}

.btn-group .btn {
    margin-right: 5px;
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.export-controls .text-muted {
    display: block;
    margin-top: 10px;
    font-size: 0.875rem;
}

/* Export Controls in Compare Page */
.export-controls {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.export-controls h5 {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
}

.btn-group .btn {
    margin-right: 5px;
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Hide export controls initially */
.export-controls {
    display: none;
}

/* Results improvements */
.results h2 {
    margin-bottom: 20px;
    color: #343a40;
}