/* Benchmark Page Styles - Shared & Page-Specific */
/* Covers benchmark.html (configuration) and benchmark_results.html (results history) */
/* Note: Color variables inherited from themes.css */

/* ============================================================
   Shared Selectors (used by both pages)
   ============================================================ */

.ldr-answer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ldr-no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

.ldr-processing-time {
    background: rgba(var(--success-color-rgb), 0.15);
    color: var(--success-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================
   Benchmark Configuration Page
   ============================================================ */

.ldr-benchmark-card {
    width: 100%;
    margin: 0;
}

.ldr-dataset-config {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
}

.ldr-dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.ldr-dataset-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldr-benchmark-progress {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
}

.ldr-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ldr-progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ldr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.3s ease;
}

.ldr-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ldr-metric-card {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    text-align: center;
}

.ldr-metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
}

.ldr-metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Theme-aware utility classes for benchmark page */
.ldr-text-success { color: var(--success-color); }
.ldr-text-info { color: var(--accent-tertiary); }
.ldr-text-warning { color: var(--warning-color); }
.ldr-text-error { color: var(--error-color); }
.ldr-text-muted { color: var(--text-muted); }
.ldr-link { color: var(--accent-tertiary); text-decoration: underline; font-size: 0.85rem; margin-left: 5px; }
.ldr-link:hover { filter: brightness(1.2); }

/* Dataset highlight boxes */
.ldr-dataset-success {
    border: 1px solid var(--success-color);
}
.ldr-dataset-success h3 { color: var(--success-color); }
.ldr-dataset-success-notice {
    background: rgba(var(--success-color-rgb), 0.1);
    border: 1px solid rgba(var(--success-color-rgb), 0.3);
    color: var(--success-color);
    padding: 8px 10px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.ldr-dataset-danger {
    border: 2px solid var(--error-color);
    background: rgba(var(--error-color-rgb), 0.08);
}
.ldr-dataset-danger h3 { color: var(--error-color); }
.ldr-dataset-danger p { color: var(--text-secondary); }
.ldr-dataset-danger-notice {
    background: rgba(var(--error-color-rgb), 0.15);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 10px 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Warning box for context window */
.ldr-warning-notice {
    background: rgba(var(--warning-color-rgb), 0.1);
    border: 1px solid rgba(var(--warning-color-rgb), 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

/* Search quality status */
.ldr-search-quality-status {
    padding: 20px;
    text-align: center;
    color: var(--text-primary);
}
.ldr-search-status-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Question and Results Display Styles */
.ldr-benchmark-section {
    margin-top: 20px;
}

.ldr-question-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.ldr-question-content {
    margin-bottom: 10px;
}

.ldr-question-text {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.ldr-question-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Scoped: .ldr-dataset-badge inside benchmark config cards */
.ldr-result-card .ldr-dataset-badge,
.ldr-question-card .ldr-dataset-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ldr-search-count-badge {
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.ldr-search-count-badge.ldr-critical {
    background: var(--error-color);
}

.ldr-search-count-badge.ldr-warning {
    background: var(--warning-color);
}

.ldr-search-count-badge.ldr-good {
    background: var(--success-color);
}

.ldr-processing-status {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ldr-processing-status.ldr-processing {
    background: var(--warning-color);
    color: var(--bg-primary);
}

.ldr-processing-status.ldr-completed {
    background: rgba(var(--success-color-rgb), 0.15);
    color: var(--success-color);
}

.ldr-result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.ldr-result-card.ldr-correct {
    border-left: 4px solid var(--success-color);
}

.ldr-result-card.ldr-incorrect {
    border-left: 4px solid var(--error-color);
}

.ldr-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ldr-result-status {
    font-weight: 600;
}

.ldr-result-status.ldr-correct {
    color: var(--success-color);
}

.ldr-result-status.ldr-incorrect {
    color: var(--error-color);
}

.ldr-answer-comparison {
    display: grid;
    gap: 8px;
}

.ldr-answer-box {
    padding: 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
    color: var(--text-primary) !important;
}

.ldr-answer-box > div {
    margin-top: 5px;
    color: var(--text-primary) !important;
}

.ldr-model-answer {
    background: rgba(var(--accent-tertiary-rgb), 0.1);
    border-left: 4px solid var(--accent-tertiary);
    color: var(--text-primary) !important;
}

.ldr-correct-answer {
    background: rgba(var(--success-color-rgb), 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--text-primary) !important;
}

/* Scoped: .ldr-dataset-accuracy inside benchmark config cards */
.ldr-benchmark-card .ldr-dataset-accuracy {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

#recent-results-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Improved layout structure */
.ldr-page-content {
    width: 100%;
    max-width: none;
}

.ldr-benchmark-progress .ldr-card {
    width: 100%;
    max-width: none;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.ldr-form-group {
    width: 100%;
}

/* Better visual hierarchy */
.ldr-benchmark-guidelines {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

.ldr-guidelines-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: start;
}

.ldr-guidelines-text {
    padding: 25px;
}

.ldr-guidelines-sidebar {
    min-width: 200px;
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    text-align: center;
    border-left: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

/* Enhanced form sections */
.ldr-form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.ldr-form-section-header {
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--border-color) 100%);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ldr-form-section-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldr-form-section-content {
    padding: 20px;
}

/* Improved dataset configuration cards */
.ldr-dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.ldr-dataset-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.ldr-dataset-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.ldr-dataset-card.ldr-disabled {
    opacity: 0.6;
    border-color: var(--text-muted);
}

.ldr-dataset-info h3 {
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.ldr-dataset-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Modern toggle switch */
.ldr-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #555;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.ldr-toggle-switch.ldr-active {
    background: var(--primary-color);
}

.ldr-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.ldr-toggle-switch.ldr-active::after {
    transform: translateX(26px);
}

/* Enhanced input styling */
.ldr-form-control {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ldr-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

/* Performance Charts Styles */
.ldr-charts-section {
    margin-top: 20px;
}

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

.ldr-chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    height: 300px;
}

.ldr-chart-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.ldr-chart-canvas {
    width: 100% !important;
    height: 250px !important;
}

/* Evaluation Settings Styles */
.ldr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.ldr-form-group.half {
    margin-bottom: 0;
}

/* ============================================================
   Benchmark Results Page
   ============================================================ */

.ldr-benchmark-results-card {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.ldr-card-content {
    padding: 0;
}

.ldr-run-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.ldr-run-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.ldr-run-card.ldr-expanded {
    border-color: var(--accent-primary);
}

.ldr-run-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ldr-run-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.ldr-run-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ldr-run-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.ldr-summary-item {
    text-align: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.ldr-summary-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.ldr-summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.ldr-accuracy-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.ldr-accuracy-high {
    background: rgba(var(--success-color-rgb), 0.15);
    color: var(--success-color);
}

.ldr-accuracy-medium {
    background: rgba(var(--warning-color-rgb), 0.15);
    color: var(--warning-color);
}

.ldr-accuracy-low {
    background: rgba(var(--error-color-rgb), 0.15);
    color: var(--error-color);
}

.ldr-status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.ldr-status-completed {
    background: rgba(var(--success-color-rgb), 0.15);
    color: var(--success-color);
}

.ldr-status-in-progress {
    background: rgba(var(--accent-tertiary-rgb), 0.15);
    color: var(--accent-tertiary);
}

.ldr-status-failed {
    background: rgba(var(--error-color-rgb), 0.15);
    color: var(--error-color);
}

.ldr-status-cancelled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.ldr-run-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.ldr-config-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.ldr-config-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ldr-config-value {
    color: var(--text-primary);
    font-weight: 500;
}

.ldr-results-section {
    margin-top: 20px;
    display: none;
}

.ldr-results-section.ldr-visible {
    display: block;
}

.ldr-examples-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.ldr-example-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
}

.ldr-example-card.ldr-correct {
    border-left: 4px solid var(--success-color);
}

.ldr-example-card.ldr-incorrect {
    border-left: 4px solid var(--error-color);
}

.ldr-example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ldr-example-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.ldr-example-status.ldr-correct {
    color: var(--success-color);
}

.ldr-example-status.ldr-incorrect {
    color: var(--error-color);
}

.ldr-example-question {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.ldr-example-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ldr-answer-section {
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ldr-model-answer-section {
    background: rgba(var(--accent-tertiary-rgb), 0.1);
    border-left: 3px solid var(--accent-tertiary);
}

.ldr-correct-answer-section {
    background: rgba(var(--success-color-rgb), 0.1);
    border-left: 3px solid var(--success-color);
}

.ldr-answer-text {
    color: var(--text-primary);
}

/* Scoped: .ldr-dataset-badge inside results example cards */
.ldr-example-card .ldr-dataset-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Scoped: .ldr-dataset-accuracy inside results page */
.ldr-example-card .ldr-dataset-accuracy {
    font-weight: bold;
    color: var(--primary-color);
}

.ldr-expand-indicator {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.ldr-dataset-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ldr-dataset-item {
    text-align: center;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.ldr-dataset-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ldr-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.ldr-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.ldr-pagination button {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
}

.ldr-pagination button:hover {
    background: var(--primary-color);
}

.ldr-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ldr-delete-btn {
    background: rgba(var(--error-color-rgb), 0.15) !important;
    border-color: var(--error-color) !important;
    color: var(--error-color) !important;
    font-size: 0.8rem;
    padding: 4px 8px;
    transition: all 0.2s;
}

.ldr-delete-btn:hover:not(:disabled) {
    background: var(--error-color) !important;
    color: white !important;
}

.ldr-delete-btn:disabled {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

.ldr-download-btn {
    background: rgba(var(--success-color-rgb), 0.15) !important;
    border-color: var(--success-color) !important;
    color: var(--success-color) !important;
    font-size: 0.8rem;
    padding: 4px 8px;
    transition: all 0.2s;
}

.ldr-download-btn:hover {
    background: var(--success-color) !important;
    color: white !important;
}

.ldr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.ldr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.ldr-filter-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ldr-filter-group select,
.ldr-filter-group input[type="date"] {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    min-height: 38px;
}

.ldr-filter-group select:hover,
.ldr-filter-group input[type="date"]:hover {
    border-color: var(--accent-primary);
}

.ldr-filter-group select:focus,
.ldr-filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
}

/* Date range specific styling */
.ldr-filter-group:last-child {
    flex: 1;
    min-width: 280px;
}

.ldr-filter-group:last-child input[type="date"] {
    width: calc(50% - 0.25rem);
    display: inline-block;
}

.ldr-filter-group:last-child input[type="date"]:first-of-type {
    margin-right: 0.5rem;
}

.ldr-search-stats-section {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.ldr-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.ldr-search-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.ldr-stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.ldr-stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.ldr-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ldr-results-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.ldr-examples-section {
    margin-top: 15px;
}

.ldr-example-metrics {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ldr-search-results-count {
    background: rgba(var(--success-color-rgb), 0.15);
    color: var(--success-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================
   Media Queries - Benchmark Configuration Page
   ============================================================ */

@media (max-width: 1200px) {
    .ldr-guidelines-content {
        grid-template-columns: 1fr;
    }

    .ldr-guidelines-sidebar {
        border-radius: 0 0 8px 8px;
        border-left: none;
        border-top: 1px solid rgba(var(--primary-color-rgb), 0.2);
    }
}

@media (max-width: 768px) {
    .ldr-dataset-grid {
        grid-template-columns: 1fr;
    }

    .ldr-guidelines-text {
        padding: 20px;
    }

    .ldr-form-section-content {
        padding: 15px;
    }

    .ldr-charts-grid {
        grid-template-columns: 1fr;
    }

    .ldr-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile responsive - ensure buttons not hidden behind mobile nav */
@media screen and (max-width: 767px) {
    .ldr-page#benchmark {
        padding-bottom: 200px;
    }

    .ldr-benchmark-actions,
    .ldr-form-actions {
        margin-bottom: 6rem;
        padding-bottom: 2rem;
    }

    #settings-form {
        padding-bottom: 2rem;
    }
}

/* ============================================================
   Media Queries - Benchmark Results Page
   ============================================================ */

@media (min-width: 768px) {
    .ldr-run-summary {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }
}

@media (min-width: 1200px) {
    .ldr-run-summary {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1600px) {
    .ldr-run-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1920px) {
    .ldr-run-summary {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .ldr-filters {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .ldr-filters {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .ldr-filters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1600px) {
    .ldr-filters {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}
