.problem-box {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.title-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.problem-title {
    font-size: 1.25rem;
    margin: 0;
    color: #0d6efd;
}

.content-section {
    flex: 1;
    overflow-y: auto;
    max-height: 700px;
}

.content-section .row {
    margin: 0;
    height: 100%;
}

.problem-description {
    white-space: pre-wrap;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.generator-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.generator-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.generator-card:last-child {
    margin-bottom: 0;
}

.generator-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.generator-card pre {
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    flex: 1;
    overflow-y: auto;
    min-height: 50px;
}

.generator-card code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Override Prism.js styles for better visibility */
.generator-card pre[class*="language-"] {
    margin: 0;
    padding: 0.5rem;
    background-color: #f5f5f5;
}

.generator-card code[class*="language-"] {
    background: none;
    text-shadow: none;
}

.solution-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.solution-section .row {
    margin: 0 -0.5rem;
}

.solution-section .col-md-4 {
    padding: 0 0.5rem;
}

.solution-drawer {
    margin-bottom: 1rem;
}

.solution-code {
    margin-top: 0.5rem;
}

.solution-code pre {
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin: 0;
    font-size: 0.875rem;
    overflow-y: auto;
    max-height: 300px;
}

.solution-code code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Override Prism.js styles for better visibility */
.solution-code pre[class*="language-"] {
    margin: 0;
    padding: 0.5rem;
    background-color: #f5f5f5;
}

.solution-code code[class*="language-"] {
    background: none;
    text-shadow: none;
}

.model-header {
    background-color: #e9ecef;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.model-header:hover {
    background-color: #dee2e6;
}

.model-header .pass-rates {
    margin-top: 0.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.model-header .badge {
    font-weight: normal;
    font-size: 0.8125rem;
}

.pass-rates {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.solution-header {
    background-color: #e9ecef;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.solution-header .pass-rates {
    margin-top: 0.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.solution-header .badge {
    font-weight: normal;
    font-size: 0.8125rem;
}

#summaryStats {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 1.1em;
    line-height: 1.4;
}

#summaryStats strong {
    color: #2c3e50;
}

.model-averages {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.model-stats {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-name {
    font-weight: 500;
    min-width: 200px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.bg-danger { background-color: #dc3545; color: white; }
.bg-success { background-color: #28a745; color: white; }
.bg-primary { background-color: #007bff; color: white; }

.filter-group {
    margin-bottom: 1rem;
}

.pass-rate-filters {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.pass-rate-filters h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pass-rate-input {
    margin-bottom: 1rem;
}

.pass-rate-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pass-rate-input .input-group {
    width: 100%;
}

.pass-rate-input .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pass-rate-input .form-control {
    text-align: center;
}

.pass-rate-input .form-control::-webkit-inner-spin-button,
.pass-rate-input .form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pass-rate-input .form-control[type=number] {
    -moz-appearance: textfield;
}

.range-slider {
    margin-bottom: 1.5rem;
}

.range-slider label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.range-inputs {
    position: relative;
    padding: 0 0.5rem;
}

.range-inputs input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9em;
    color: #666;
}

/* Style the range inputs */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.no-solutions {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.model-stats-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.model-stats-table th,
.model-stats-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.model-stats-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.model-stats-table tr:last-child td {
    border-bottom: none;
}

.model-stats-table .model-col {
    width: 25%;
    font-weight: 500;
}

.model-stats-table .solutions-col {
    width: 15%;
    text-align: center;
}

.model-stats-table .scores-col {
    width: 60%;
}

.model-stats-table .scores-col .badge {
    margin-right: 0.5rem;
    min-width: 110px;
    display: inline-block;
    text-align: center;
}

.model-stats-table .scores-col .badge:last-child {
    margin-right: 0;
} 