body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f9fa;
}
.container {
    max-width: 2100px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px;
    min-height: calc(100vh - 40px);
}

/* Main title at the top */
.main-title {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ed;
}

.main-title h1 {
    color: #2d3a4b;
    font-size: 2.2em;
    margin: 0;
    font-weight: 600;
}

/* Two-column layout */
.content-wrapper {
    display: flex;
    gap: 40px;
    min-height: calc(100vh - 200px);
}

/* Left side - Form */
.form-container {
    flex: 0 0 950px;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e0e6ed;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Right side - Results */
.results-container {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e0e6ed;
    min-height: 600px;
}

h1, h2, h3 {
    color: #2d3a4b;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e6ed;
}
.form-section:last-child {
    border-bottom: none;
}
.form-section h2 {
    font-size: 1.3em;
    margin-bottom: 18px;
    color: #1a7bb7;
}
.form-group {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}
.form-group label {
    flex: 0 0 250px;
    font-weight: 500;
    color: #34495e;
    margin-right: 12px;
    position: relative;
}
.form-group .tooltip {
    display: inline-block;
    background: #e0e6ed;
    color: #1a7bb7;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 13px;
    margin-left: 6px;
    cursor: pointer;
    position: relative;
}
.form-group .tooltip:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 24px;
    top: 0;
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    white-space: pre-line;
    z-index: 10;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.form-group input[type="number"],
.form-group input[type="text"],
.form-group select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 1em;
    background: #f9fbfc;
}
.options {
    display: flex;
    gap: 12px;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
}
.nowrap-options {
    flex-wrap: wrap !important;
}
.nowrap-options .option {
    flex: 1 1 0;
    min-width: 80px;
    max-width: 120px;
    pointer-events: auto;
}
.option {
    flex: 1 1 0;
    min-width: 120px;
    max-width: 220px;
    box-sizing: border-box;
    background: #f1f5f9;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 16px 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1em;
    margin-bottom: 0;
}
.option.selected, .option:active {
    background: #1a7bb7 !important;
    color: #fff !important;
    border-color: #1a7bb7 !important;
}
.required {
    color: #e74c3c;
    margin-left: 2px;
}
.button-container {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.button-container button {
    flex: 1;
}
.main-button {
    width: 100%;
    padding: 14px 0;
    font-size: 1.1em;
    border: none;
    border-radius: 6px;
    background: #1a7bb7;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.main-button:hover {
    background: #155a8a;
}
.secondary-button {
    width: 100%;
    padding: 14px 0;
    font-size: 1.1em;
    border: none;
    border-radius: 6px;
    background: #b2bec3;
    color: #222;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.secondary-button:hover {
    background: #95a5a6;
}
.calculate-button {
    padding: 8px 18px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    background: #1a7bb7;
    color: #fff;
    cursor: pointer;
    margin-left: 12px;
    margin-right: 8px;
    transition: background 0.2s;
}
.calculate-button:hover {
    background: #155a8a;
}

/* Results styling */
.summary-card {
    background: #eaf6fb;
    border-left: 6px solid #1a7bb7;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(26,123,183,0.07);
}
.summary-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    margin-right: 10px;
}
.badge-high { background: #e74c3c; color: #fff; }
.badge-medium { background: #f39c12; color: #fff; }
.badge-low { background: #27ae60; color: #fff; }
.badge-recommend { background: #1a7bb7; color: #fff; }
.badge-not-recommend { background: #b2bec3; color: #222; }
.results-tabs {
    margin-top: 32px;
}
.tab-list {
    display: flex;
    border-bottom: 2px solid #e0e6ed;
    margin-bottom: 0;
}
.tab-list li {
    list-style: none;
    padding: 12px 32px;
    cursor: pointer;
    color: #1a7bb7;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: border 0.2s, color 0.2s;
}
.tab-list li.active {
    border-bottom: 3px solid #1a7bb7;
    color: #2d3a4b;
}
.tab-content {
    display: none;
    padding: 24px 0 0 0;
}
.tab-content.active {
    display: block;
}
.image-container {
    margin: 18px 0;
    text-align: center;
}
.image-caption {
    font-size: 1em;
    color: #34495e;
    margin-bottom: 8px;
}

/* Enhanced Results Presentation */
.results-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #1a7bb7;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.metric-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.metric-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #1a7bb7;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 1em;
    color: #6c757d;
    font-weight: 500;
}

.risk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.risk-table thead {
    background: linear-gradient(135deg, #1a7bb7 0%, #155a8a 100%);
    color: white;
}

.risk-table th, .risk-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.risk-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.risk-table tbody tr:hover {
    background-color: #f8f9fa;
}

.risk-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.risk-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9em;
}

.risk-low { background: #d1ecf1; color: #0c5460; }
.risk-medium { background: #fff3cd; color: #856404; }
.risk-high { background: #f8d7da; color: #721c24; }

.percentile-badge {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.results-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.summary-title {
    font-size: 1.3em;
    color: #2d3a4b;
    margin-bottom: 16px;
    font-weight: 600;
}

.summary-text {
    font-size: 1.1em;
    color: #495057;
    line-height: 1.6;
}
.feedback-section {
    margin-top: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 24px 24px 16px 24px;
    box-shadow: 0 2px 8px rgba(26,123,183,0.04);
}

/* Feature Analysis Styles */
.feature-card {
    margin: 24px 0;
}

.feature-card h4 {
    color: #2d3a4b;
    margin-bottom: 16px;
    font-size: 1.2em;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 8px;
}

.feature-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.patient-position {
    font-size: 1.1em;
    margin-bottom: 16px;
    color: #495057;
}

.feature-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #1a7bb7;
}

.feature-charts-container {
    margin-top: 20px;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-col {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #dee2e6;
}

.chart-col h5 {
    color: #2d3a4b;
    margin-bottom: 12px;
    font-size: 1.1em;
    text-align: center;
}

.chart-container-small {
    position: relative;
    height: 300px;
    margin: 12px 0;
}

/* Doctor Assessment Section Styles */
.doctor-assessment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #1a7bb7;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(26, 123, 183, 0.15);
}

.doctor-assessment-section h2 {
    background: linear-gradient(135deg, #1a7bb7, #155a8a);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: -8px -8px 20px -8px;
}

.doctor-assessment-section p {
    background: rgba(26, 123, 183, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #1a7bb7;
    font-weight: 500;
}

.doctor-assessment-section .form-group {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.doctor-assessment-section .form-group label {
    color: #1a7bb7;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .content-wrapper {
        gap: 24px;
    }
    
    .form-container {
        flex: 0 0 550px;
    }
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        max-width: 900px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    
    .form-container {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .results-container {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .container { 
        padding: 12px; 
        margin: 10px;
    }
    .form-container, .results-container {
        padding: 16px;
    }
    .form-group label { flex: 0 0 120px; }
    .main-button, .secondary-button, .calculate-button {
        font-size: 1em;
        padding: 10px 0;
    }
    .options {
        flex-direction: column;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .option {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 16px 0;
        font-size: 1.1em;
    }
    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .risk-table {
        font-size: 0.9em;
    }
    .risk-table th, .risk-table td {
        padding: 8px 4px;
    }
    .chart-container {
        height: 300px;
        padding: 15px;
    }
    .metric-value {
        font-size: 1.8em;
    }
    
    /* Feature Analysis Mobile Styles */
    .chart-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chart-container-small {
        height: 250px;
    }
    
    .feature-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 8px;
    }
}

.top-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 18px 32px 0 0;
    position: relative;
    z-index: 1100;
    background: transparent;
}
.lang-switch-btn {
    position: static !important;
    top: unset !important;
    right: unset !important;
    z-index: 1000;
    background: #1a7bb7;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    margin-left: 0;
}
.lang-switch-btn:hover {
    background: #155a8a;
    color: #fff;
}
.github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #24292f;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-decoration: none;
    margin-left: 6px;
    transition: background 0.2s;
    font-size: 1.2em;
}
.github-btn:hover {
    background: #444d56;
    color: #fff;
}
@media (max-width: 700px) {
    .top-bar {
        padding: 10px 10px 0 0;
        gap: 6px;
    }
    .github-btn {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
    .lang-switch-btn {
        padding: 6px 12px;
        font-size: 1em;
    }
} 