/* 
 * Deepfake Detection System - Stylesheet
 * DPL302m Project 2025
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    background: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn i {
    margin-right: 0.5rem;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-box {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-box:hover {
    background: #f8f9ff;
    border-color: #764ba2;
}

.upload-box i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-box p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Detection Settings */
.detection-settings {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.detection-settings h3 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detection-settings h3 i {
    color: #0093E9;
}

/* Model Selector */
.model-selector {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.model-selector h3 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-selector h3 i {
    color: #0093E9;
}

.model-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.model-option {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.model-option:hover {
    border-color: #0093E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 147, 233, 0.2);
}

.model-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.model-option input[type="radio"]:checked + label {
    color: #0093E9;
}

.model-option input[type="radio"]:checked ~ label::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.model-option label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.model-option label i {
    color: #0093E9;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.model-option label strong {
    font-size: 1rem;
    color: #333;
}

.model-option .model-desc {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.model-option input[type="radio"]:checked + label strong {
    color: #0093E9;
}

.model-option input[type="radio"]:checked {
    border-color: #0093E9;
    background: linear-gradient(135deg, rgba(0, 147, 233, 0.05) 0%, rgba(128, 208, 199, 0.05) 100%);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.setting-item {
    background: linear-gradient(135deg, rgba(0, 147, 233, 0.05) 0%, rgba(128, 208, 199, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 147, 233, 0.1);
}

.setting-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.setting-item label i {
    color: #0093E9;
    margin-right: 0.5rem;
}

.setting-value {
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: auto;
}

.setting-item input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #0093E9 0%, #80D0C7 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 147, 233, 0.4);
    border: 3px solid #0093E9;
}

.setting-item input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 147, 233, 0.4);
    border: 3px solid #0093E9;
}

.setting-hint {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Preview Section */
.preview-section {
    margin-top: 2rem;
    text-align: center;
}

.preview-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.preview-section img,
.preview-section video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Result Section */
.result-section {
    margin-top: 2rem;
}

.result-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.result-card {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-label {
    font-size: 2rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
}

.result-label.real {
    background: #10b981;
    color: white;
}

.result-label.fake {
    background: #ef4444;
    color: white;
}

.result-confidence {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.result-image img,
.result-video video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.result-details {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Video Stats */
.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-item.fake i {
    color: #ef4444;
}

.stat-item.real i {
    color: #10b981;
}

.stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
}

.stat-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Camera Section */
.camera-section {
    text-align: center;
}

.camera-controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-preview {
    margin-top: 2rem;
}

.camera-preview h3 {
    margin-bottom: 1rem;
    color: #333;
}

.camera-feed {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.camera-feed img {
    width: 100%;
    height: auto;
    display: block;
}

.camera-info {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 10px;
    text-align: left;
}

.camera-info p {
    margin: 0.5rem 0;
    color: #666;
}

.camera-info i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
    animation: progress 2s infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    color: #666;
    margin: 0.5rem 0;
}

.footer i {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tab-btn {
        min-width: 100%;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .video-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   DATA PREPROCESSING TAB STYLES
   ============================================ */

.data-preprocessing-container {
    padding: 2rem 0;
}

.data-preprocessing-container h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.preprocessing-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.preprocessing-section h3 {
    color: #0093E9;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #0093E9;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pipeline Cards */
.pipeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pipeline-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #0093E9;
    transition: transform 0.3s;
}

.pipeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 147, 233, 0.3);
}

.step-number {
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pipeline-card h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.step-details {
    font-size: 0.85rem;
}

.detail-row {
    padding: 0.3rem 0;
    display: flex;
    gap: 0.5rem;
}

.detail-row .label {
    font-weight: bold;
    color: #0093E9;
    min-width: 80px;
}

.detail-row .value {
    color: #555;
}

.detail-row code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Statistics Summary */
.stats-summary {
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.stats-summary h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card.highlight {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
}

.total-info {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.total-info p {
    margin: 0.5rem 0;
}

/* Comparison Grid */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.method-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.method-card.featured {
    border-color: #0093E9;
    background: linear-gradient(135deg, rgba(0, 147, 233, 0.05) 0%, rgba(128, 208, 199, 0.05) 100%);
}

.method-card h4 {
    color: #0093E9;
    margin-bottom: 0.5rem;
}

.method-desc {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.pros h5, .cons h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    padding-left: 1.2rem;
    position: relative;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.cons li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #ffc107;
}

.formula-box {
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border-left: 3px solid #667eea;
}

.formula-box code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    display: block;
    margin: 0.5rem 0;
}

.formula-box .example {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.recommendation {
    background: #e7f3ff;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #004085;
}

.comparison-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.comp-stat {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.final-recommendation {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* Techniques Grid */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.technique-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #6c757d;
}

.technique-card.highly-recommended {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.technique-card.recommended {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(23, 162, 184, 0.02) 100%);
}

.technique-card.moderate {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.technique-card.not-recommended {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.technique-card h4 {
    color: #333;
    margin-bottom: 0.75rem;
}

.verdict {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.verdict.highly-recommended {
    background: #28a745;
    color: white;
}

.verdict.recommended {
    background: #17a2b8;
    color: white;
}

.verdict.moderate {
    background: #ffc107;
    color: #333;
}

.verdict.not-recommended {
    background: #dc3545;
    color: white;
}

.technique-card .reason {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.helps-hinders {
    margin-top: 1rem;
}

.helps, .hinders {
    margin-bottom: 1rem;
}

.helps h5, .hinders h5 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.helps ul, .hinders ul {
    list-style: none;
    padding-left: 1rem;
}

.helps li, .hinders li {
    font-size: 0.8rem;
    padding: 0.2rem 0;
    color: #555;
}

/* Imbalance Methods */
.methods-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.imbalance-method-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #667eea;
}

.imbalance-method-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.method-metrics {
    margin: 1rem 0;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.metric-label {
    font-weight: 600;
    color: #495057;
}

.metric-value {
    color: #667eea;
}

.best-for {
    background: #e7f3ff;
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #004085;
}

.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.info-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.weights-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.weight-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.weight-ratio {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.05rem;
}

.pros-cons-inline {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.pros-cons-inline > div {
    padding: 0.5rem 0;
}

/* Quality Metrics */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 3px solid #667eea;
}

.metric-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-top-width: 4px;
}

.metric-card h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.metric-card > p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.metric-details {
    font-size: 0.85rem;
}

.metric-details > div {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
}

.metric-details code {
    background: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.success {
    background: #d4edda;
    color: #155724;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.why-important {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 5px;
    color: #495057;
    font-style: italic;
}

.quality-levels {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.quality-levels > div {
    flex: 1;
    min-width: 120px;
}

.action-info {
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 5px;
    color: #856404;
    margin-top: 0.5rem;
}

/* Quality Test */
.quality-test-container {
    margin-top: 1rem;
}

.quality-test-container .upload-box {
    background: rgba(255, 255, 255, 0.95);
    border: 3px dashed #0093E9;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-test-container .upload-box:hover {
    background: rgba(0, 147, 233, 0.05);
    border-color: #80D0C7;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 147, 233, 0.2);
}

.quality-test-container .upload-box i {
    font-size: 3rem;
    color: #0093E9;
    margin-bottom: 1rem;
    display: block;
}

.quality-test-container .upload-box p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.quality-result {
    margin-top: 1.5rem;
}

.quality-test-results {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.test-image-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.test-metrics h4 {
    color: #0093E9;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.overall-score {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 147, 233, 0.05), rgba(128, 208, 199, 0.05));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 147, 233, 0.2);
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
}

.score-level {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.detailed-metrics {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-name {
    font-weight: 600;
    color: #495057;
}

.metric-val {
    color: #0093E9;
    font-weight: 600;
    font-size: 1.1rem;
}

.recommendations-list h5 {
    color: #0093E9;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rec-item {
    background: white;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    font-size: 0.95rem;
    border-left: 4px solid #0093E9;
    padding-left: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive for quality test */
@media (max-width: 768px) {
    .quality-test-results {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #0093E9;
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-spinner::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: ""; }
}

/* ================================
   DATA VISUALIZATION STYLES
   ================================ */

/* Section Header */
.section-header {
    text-align: center;
    padding: 2rem 0;
    background: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    color: #0093E9;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Visualization Sub-tabs */
.viz-subtabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.viz-subtab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.viz-subtab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.viz-subtab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.viz-subtab-btn i {
    font-size: 1.2rem;
}

/* Visualization Content */
.viz-content {
    display: none;
}

.viz-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
    position: relative;
    height: 500px;
    margin-bottom: 2rem;
}

.chart-wrapper.small {
    height: 400px;
}

/* Chart Explanation Box */
.chart-explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.chart-explanation strong {
    color: #667eea;
}

.chart-explanation code {
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.info-card.green {
    border-top-color: #28a745;
}

.info-card.blue {
    border-top-color: #007bff;
}

.info-card.red {
    border-top-color: #dc3545;
}

.info-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.info-card.green i {
    color: #28a745;
}

.info-card.blue i {
    color: #007bff;
}

.info-card.red i {
    color: #dc3545;
}

.info-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: #6c757d;
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.badge.success {
    background: #d4edda;
    color: #155724;
}

.badge.info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.badge.star {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

/* Technique Grid */
.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.technique-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.technique-card.recommended {
    border-color: #28a745;
}

.technique-card.caution {
    border-color: #ffc107;
}

.technique-card.avoid {
    border-color: #dc3545;
}

.technique-card .rating {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.technique-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.technique-card .metric {
    margin: 1rem 0;
}

.technique-card .metric span {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar .progress {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 1s ease;
}

.progress-bar.red .progress {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.technique-card .verdict {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.95rem;
    text-align: center;
}

/* Comparison Table */
.comparison-table-wrapper {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table-wrapper h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    font-weight: 600;
    font-size: 0.95rem;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr.highlight {
    background: rgba(102, 126, 234, 0.05);
}

.comparison-table tbody tr.best {
    background: rgba(255, 215, 0, 0.1);
}

.comparison-table .score {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score.excellent {
    background: #d4edda;
    color: #155724;
}

.score.good {
    background: #d1ecf1;
    color: #0c5460;
}

.score.moderate {
    background: #fff3cd;
    color: #856404;
}

.score.bad {
    background: #f8d7da;
    color: #721c24;
}

/* Formula Card */
.formula-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.formula-card h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.formula {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
}

.formula code {
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.formula-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-item p {
    color: #6c757d;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.detail-item code {
    display: block;
    margin-top: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.9rem;
}

.threshold-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.threshold-info h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.threshold-info ul {
    list-style: none;
    padding: 0;
}

.threshold-info li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box.green {
    border-top-color: #28a745;
}

.stat-box.red {
    border-top-color: #dc3545;
}

.stat-box.blue {
    border-top-color: #007bff;
}

.stat-box i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-box.green i {
    color: #28a745;
}

.stat-box.red i {
    color: #dc3545;
}

.stat-box.blue i {
    color: #007bff;
}

.stat-box h4 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box .big-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
}

.stat-box .percentage {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 600;
}

/* Responsive Design for Visualizations */
@media (max-width: 768px) {
    .viz-subtabs {
        flex-direction: column;
    }
    
    .viz-subtab-btn {
        width: 100%;
    }
    
    .chart-wrapper {
        height: 350px;
    }
    
    .info-cards,
    .technique-grid,
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   END DATA VISUALIZATION STYLES
   ================================ */

/* ================================
   BASELINE NEURAL NETWORK STYLES
   ================================ */

/* Baseline Section */
.baseline-section {
    margin-bottom: 3rem;
}

/* Alert Boxes */
.alert-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-box.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-left: 5px solid #d35400;
}

.alert-box i {
    font-size: 2rem;
}

.alert-box h4 {
    margin-bottom: 0.5rem;
}

/* Parameter Cards */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.param-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.param-card.feedforward {
    border-left: 5px solid #e74c3c;
}

.param-card.cnn {
    border-left: 5px solid #2ecc71;
}

.param-card h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.param-detail {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-detail code {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.big-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.big-number.red {
    color: #e74c3c;
}

.big-number.green {
    color: #2ecc71;
}

/* Feature Method Cards */
.feature-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.method-card:hover {
    transform: translateY(-5px);
}

.method-card.best {
    border: 3px solid #2ecc71;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.method-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #667eea;
}

.method-card h4 {
    text-align: center;
    margin-bottom: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.verdict {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* Architecture Cards */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.arch-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.arch-card.recommended {
    border: 2px solid #3498db;
}

.arch-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.arch-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.arch-results {
    margin-bottom: 1rem;
}

.arch-results > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.gap {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: bold;
}

.gap.moderate {
    background: #ffeaa7;
    color: #fdcb6e;
}

.gap.high {
    background: #fab1a0;
    color: #e17055;
}

.gap.severe {
    background: #ff7675;
    color: #d63031;
}

.gap.critical {
    background: #d63031;
    color: white;
}

/* Regularization Cards */
.regularization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.reg-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.reg-card.baseline {
    border-left: 4px solid #e74c3c;
}

.reg-card.best {
    border: 3px solid #2ecc71;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.reg-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.reg-stats {
    margin: 1rem 0;
}

.reg-stats > span {
    display: block;
    margin-bottom: 0.5rem;
}

.gap-bar {
    height: 8px;
    background: linear-gradient(90deg, #2ecc71 0%, #f39c12 50%, #e74c3c 100%);
    border-radius: 4px;
    margin: 0.5rem 0;
}

.gap-value {
    font-weight: bold;
    color: #2c3e50;
}

/* VS Container */
.vs-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: center;
}

.vs-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.vs-card.feedforward {
    border: 3px solid #e74c3c;
}

.vs-card.cnn {
    border: 3px solid #2ecc71;
}

.vs-card.winner {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.trophy {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 3rem;
    color: #f1c40f;
}

.vs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.vs-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vs-header h3 {
    font-size: 1.3rem;
    line-height: 1.5;
}

.vs-stats {
    margin-bottom: 2rem;
}

.vs-stat {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.vs-stat span {
    display: block;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-value.red {
    color: #e74c3c;
}

.stat-value.green {
    color: #2ecc71;
}

.stat-value.orange {
    color: #f39c12;
}

.improvement {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1rem;
    color: #2ecc71;
    font-weight: bold;
}

.vs-issues,
.vs-advantages {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.vs-issues h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.vs-advantages h4 {
    color: #2ecc71;
    margin-bottom: 0.5rem;
}

.vs-issues ul,
.vs-advantages ul {
    list-style: none;
    padding-left: 0;
}

.vs-issues li,
.vs-advantages li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.vs-issues li:before {
    content: "❌";
    position: absolute;
    left: 0;
}

.vs-advantages li:before {
    content: "✅";
    position: absolute;
    left: 0;
}

.vs-divider {
    text-align: center;
}

.vs-icon {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.arrow-right {
    font-size: 2rem;
    color: #2ecc71;
}

/* Final Verdict */
.final-verdict {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.verdict-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.verdict-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.verdict-content {
    margin-bottom: 2rem;
}

.verdict-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
}

.verdict-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.verdict-icon.red {
    background: #ffe5e5;
    color: #e74c3c;
}

.verdict-icon.green {
    background: #e5ffe5;
    color: #2ecc71;
}

.verdict-text h3 {
    margin-bottom: 1rem;
}

.verdict-text ol,
.verdict-text ul {
    margin-left: 1.5rem;
}

.verdict-text li {
    margin-bottom: 0.5rem;
}

.verdict-recommendation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

.verdict-recommendation h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rec-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.rec-box h4 {
    margin-bottom: 1rem;
}

.rec-box code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
    display: block;
    margin: 1rem 0;
    word-break: break-all;
}

.dataset-proof {
    background: #f0fff4;
    border: 2px solid #2ecc71;
    padding: 1.5rem;
    border-radius: 10px;
}

.dataset-proof h4 {
    color: #2ecc71;
    margin-bottom: 1rem;
}

.dataset-proof code {
    background: #c6f6d5;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Conclusion Boxes */
.conclusion-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.conclusion-box.success {
    background: #e5ffe5;
    border-left: 5px solid #2ecc71;
}

.conclusion-box.warning {
    background: #fff3e0;
    border-left: 5px solid #f39c12;
}

.conclusion-box h4 {
    margin-bottom: 1rem;
}

.conclusion-box ul,
.conclusion-box ol {
    margin-left: 1.5rem;
}

.conclusion-box li {
    margin-bottom: 0.5rem;
}

/* Highlight text */
.highlight {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.highlight.red {
    background: #ffe5e5;
    color: #e74c3c;
}

.highlight.green {
    background: #e5ffe5;
    color: #2ecc71;
}

.highlight.orange {
    background: #fff3e0;
    color: #f39c12;
}

/* Responsive for Baseline */
@media (max-width: 768px) {
    .vs-container {
        grid-template-columns: 1fr;
    }
    
    .vs-divider {
        transform: rotate(90deg);
    }
    
    .comparison-cards,
    .feature-methods-grid,
    .architecture-grid,
    .regularization-grid {
        grid-template-columns: 1fr;
    }
    
    .big-number {
        font-size: 2rem;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   END BASELINE NN STYLES
   ================================ */

/* Loading dots animation */
@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* ============================================================================
   ENHANCED SUMMARY & BEST CONFIG STYLES
   Modern, professional design for training optimization results
   ============================================================================ */

/* Modern Table Styling */
.summary-table-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-table thead th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table thead th i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.modern-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.modern-table tbody td {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
}

.modern-table tbody td strong {
    color: #2c3e50;
}

/* Golden Row for Combined Best */
.golden-row {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%) !important;
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
}

.golden-row:hover {
    background: linear-gradient(135deg, #fff5d6 0%, #fff9e0 100%) !important;
}

/* Config Badge Styles */
.config-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f0f3ff;
    border: 1px solid #667eea;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.config-badge.golden {
    background: #fff9e6;
    border-color: #FFD700;
    color: #ff8c00;
}

.param-text {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Metric Badge Styles */
.metric-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.metric-badge.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.metric-badge.excellent {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.metric-badge.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.metric-badge.golden {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.finding-text {
    color: #34495e;
    font-size: 0.9rem;
}

.finding-text i {
    margin-right: 0.3rem;
    color: #27ae60;
}

/* Data Verification Badge */
.data-verification-badge {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    color: #1b5e20;
    font-size: 0.95rem;
}

.data-verification-badge i {
    color: #4caf50;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.data-verification-badge strong {
    color: #2e7d32;
}

.data-verification-badge small {
    display: block;
    margin-top: 0.5rem;
    color: #388e3c;
    opacity: 0.9;
}

/* Enhanced Config Cards */
.gradient-card {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.gradient-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.config-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.config-icon i {
    font-size: 1.8rem;
    color: white;
}

.config-content .config-label {
    font-size: 0.85rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.config-content .config-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.config-content .config-params {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.config-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    border: 1px solid #dee2e6;
}

.metric-pill i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.metric-pill.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Enhanced Metric Cards */
.metric-card {
    color: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.metric-card:hover::before {
    transform: scale(1.2);
}

.metric-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.shine-effect {
    position: relative;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.shine-effect:hover::after {
    left: 100%;
}

.metric-icon {
    font-size: 3rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.metric-content {
    flex-grow: 1;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.metric-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-style: italic;
}

/* Insight Cards Enhancement */
.insight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.insight-card:nth-child(1) {
    border-left-color: #667eea;
}

.insight-card:nth-child(2) {
    border-left-color: #f093fb;
}

.insight-card:nth-child(3) {
    border-left-color: #4facfe;
}

.insight-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.insight-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
}

.insight-card h4 i {
    font-size: 1.3rem;
}

.insight-card:nth-child(1) h4 i {
    color: #667eea;
}

.insight-card:nth-child(2) h4 i {
    color: #f093fb;
}

.insight-card:nth-child(3) h4 i {
    color: #4facfe;
}

.insight-card p {
    color: #34495e;
    line-height: 1.7;
    font-size: 0.95rem;
}

.insight-card p strong {
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.8rem 1rem;
    }
    
    .config-content .config-value {
        font-size: 1.6rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .config-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

