body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f6f9;
    color: #333;
}

header {
    background-color: #1f2937;
    color: white;
    padding: 30px;
    text-align: center;
}

section {
    padding: 40px;
    margin: 20px auto;
    max-width: 1000px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

h2 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: #111827;
    color: white;
    padding: 12px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.plot-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #111827;
    color: white;
    margin-top: 40px;
}
/* ========================= */
/* Performance Chart Styling */
/* ========================= */

.chart-container {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.chart-section {
    margin-bottom: 25px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.bar-label {
    width: 70px;
    font-weight: bold;
}

.bar-track {
    flex: 1;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    height: 28px;
}

.bar {
    height: 100%;
    line-height: 28px;
    text-align: right;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    border-radius: 20px;
}

.sft-bar {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.rlhf-bar {
    background: linear-gradient(90deg, #059669, #10b981);
}

.chart-legend {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.sft-box {
    background: #3b82f6;
}

.rlhf-box {
    background: #10b981;
}