/**
 * Evaluations View Styles
 */

/* Evals container - full page when visible */
.evals-container {
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Main container */
.evals-view {
    padding: 1.5rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Eval Runner Section
   ───────────────────────────────────────────────────────────────────────────── */

.eval-runner-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--accent-blue);
    overflow: hidden;
}

.eval-runner-header {
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.15), rgba(155, 89, 182, 0.1));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.eval-runner-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.eval-runner-content {
    padding: 1.5rem;
}

.eval-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.eval-selector label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.eval-selector select {
    flex: 1;
    min-width: 300px;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.eval-selector select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Three-panel layout */
.eval-runner-panels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eval-panel {
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    max-height: 400px;
}

.eval-panel .panel-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.eval-panel .panel-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.eval-panel .panel-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* Panel-specific styles */
.payload-panel .panel-header {
    background: rgba(52, 152, 219, 0.1);
}

.payload-panel .panel-header h4 {
    color: #3498db;
}

.expected-panel .panel-header {
    background: rgba(46, 204, 113, 0.1);
}

.expected-panel .panel-header h4 {
    color: #2ecc71;
}

.api-response-panel .panel-header {
    background: rgba(155, 89, 182, 0.1);
}

.api-response-panel .panel-header h4 {
    color: #9b59b6;
}

/* Payload field display */
.payload-field {
    margin-bottom: 1rem;
}

.payload-field:last-child {
    margin-bottom: 0;
}

.payload-field .field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.payload-field .field-value {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 4px;
    max-height: 80px;
    overflow-y: auto;
}

.payload-field .transcript-preview {
    max-height: 100px;
}

/* Response content */
.response-content {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

/* Actual response section in expected panel */
.actual-response-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.actual-response-section h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.actual-response-section .response-content.actual {
    background: var(--surface-secondary);
    padding: 0.75rem;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

/* API meta info */
.api-meta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.api-meta .meta-label {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.tags-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Status indicators */
.api-status .status-running {
    color: var(--accent-orange);
    font-size: 0.8rem;
}

.api-status .status-success {
    color: var(--accent-green);
    font-size: 0.8rem;
}

.api-status .status-error {
    color: var(--accent-red);
    font-size: 0.8rem;
}

/* Loading and error states */
.loading-spinner {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.error-message {
    color: var(--accent-red);
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
}

/* Full API Details */
.api-full-details {
    margin-top: 1rem;
}

.api-full-details .details-toggle {
    text-align: center;
}

.api-full-details .details-content {
    margin-top: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.api-full-details .details-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 1rem 0;
}

/* Header */
.evals-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.evals-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.evals-header .subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Controls */
.evals-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.control-group {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Score filter row styling */
.score-filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.score-filter-row .input {
    flex: 1;
    max-width: 100px;
    height: 36px;
    padding: 6px 10px;
}

.score-filter-row .btn-sm {
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

#file-name-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.prompt-source {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.prompt-source select {
    flex: 1;
    min-width: 150px;
}

.prompt-source select.hidden {
    display: none;
}

/* Status bar */
.evals-status {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-item .value {
    font-weight: 600;
    color: var(--accent-blue);
}

/* Table container */
.evals-table-container {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.evals-table-container .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.evals-table-container .table-header h3 {
    margin: 0;
    font-size: 1rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

/* Table styles */
.evals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.evals-table th,
.evals-table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.evals-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.evals-table tr:hover {
    background: var(--bg-hover);
    cursor: pointer;
}

.evals-table tr.selected {
    background: var(--bg-selection);
}

.evals-table .score {
    text-align: center;
    font-weight: 500;
}

.evals-table .score.overall {
    font-weight: 700;
    color: var(--accent-blue);
}

.evals-table .preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.evals-table .actions-cell {
    white-space: nowrap;
    text-align: center;
}

.evals-table .actions-cell .btn {
    padding: 0.25rem 0.5rem;
    min-width: 32px;
    margin: 0 0.125rem;
}

/* Action buttons */
.evals-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-success {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-success:hover:not(:disabled) {
    background: #3db99f;
}

.btn-warning {
    background: #f59e0b;
    color: var(--bg-primary);
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

/* Progress section */
.evals-progress {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.evals-progress h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.evals-progress.hidden {
    display: none;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-hover));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.progress-log {
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.log-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .time {
    color: var(--text-muted);
    margin-right: 0.75rem;
}

.log-entry.log-info {
    color: var(--text-secondary);
}

.log-entry.log-success {
    color: var(--accent-green);
}

.log-entry.log-warning {
    color: var(--accent-orange);
}

.log-entry.log-error {
    color: var(--accent-red);
}

/* Results section */
.evals-results {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--accent-green);
}

.evals-results.hidden {
    display: none;
}

.evals-results h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--accent-green);
}

.results-summary {
    margin-bottom: 1rem;
}

.results-summary p {
    margin: 0.25rem 0;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
}

/* Saved prompts */
.saved-prompts-section {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.saved-prompts-section h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.saved-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.saved-prompt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.saved-prompt-item:hover {
    border-color: var(--accent-blue);
}

.prompt-info .filename {
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.prompt-info .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
}

.placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Detail modal styles */
.eval-details-modal .detail-section {
    margin-bottom: 1.5rem;
}

.eval-details-modal .detail-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eval-details-modal .detail-content {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.score-item {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.score-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.score-item .value {
    font-size: 1.25rem;
    font-weight: 700;
}

.score-item.overall {
    background: rgba(0, 122, 204, 0.15);
}

.score-item.overall .value {
    color: var(--accent-blue);
}

/* Prompt viewer modal */
.prompt-viewer-modal {
    max-width: 1000px;
}

.prompt-viewer-modal .prompt-content {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

/* Paste Modal */
.paste-modal {
    max-width: 800px;
}

.paste-textarea {
    width: 100%;
    min-height: 400px;
    padding: var(--spacing-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.paste-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.modal-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* MongoDB Modal */
.mongo-modal {
    max-width: 500px;
}

.select.full-width {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.select.full-width:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Response Comparison Modal
   ───────────────────────────────────────────────────────────────────────────── */

.response-comparison-modal {
    max-width: 1200px;
    width: 95%;
}

.response-comparison-modal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

/* Status indicator */
.comparison-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.comparison-status.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.comparison-status.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.comparison-status .status-icon {
    font-size: 1.25rem;
}

/* Comparison grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comparison-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.comparison-panel .panel-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-panel .panel-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.expected-panel .panel-header {
    background: rgba(52, 152, 219, 0.1);
    border-bottom-color: rgba(52, 152, 219, 0.3);
}

.expected-panel .panel-header h4 {
    color: #3498db;
}

.api-panel .panel-header {
    background: rgba(155, 89, 182, 0.1);
    border-bottom-color: rgba(155, 89, 182, 0.3);
}

.api-panel .panel-header h4 {
    color: #9b59b6;
}

.comparison-panel .panel-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.response-text {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

.response-text.error-text {
    color: var(--accent-red);
}

/* API Details section */
.api-details-section,
.payload-section {
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.details-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.details-content,
.payload-content {
    padding: 1rem;
}

.details-content.hidden,
.payload-content.hidden {
    display: none;
}

/* API Response Grid */
.api-response-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.response-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.response-field.full-width {
    grid-column: 1 / -1;
}

.field-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.field-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.field-value.cost-value {
    font-family: var(--font-mono);
    color: var(--accent-green);
}

.field-value.analysis-text {
    font-size: 0.8rem;
    line-height: 1.5;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list .tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Raw JSON section */
.raw-json-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.raw-json-section h5 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.raw-json {
    margin: 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Modal footer adjustments */
.response-comparison-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Eval details modal footer */
.eval-details-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Eval details modal - wider to accommodate sidebar */
.eval-details-modal {
    max-width: 1200px;
}

/* Modal body container - two column layout */
.eval-details-modal .modal-body-container {
    display: flex;
    gap: 1rem;
    flex: 1;
    overflow: hidden;
    max-height: 70vh;
}

.eval-details-modal .modal-body-container .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    min-width: 0;
}

/* Raw JSON sidebar */
.eval-details-modal .modal-sidebar {
    width: 400px;
    min-width: 350px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.eval-details-modal .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.eval-details-modal .sidebar-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eval-details-modal .copy-json-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.eval-details-modal .copy-json-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.eval-details-modal .raw-json-content {
    flex: 1;
    margin: 0;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    color: var(--text-primary);
    background: transparent;
}

/* Responsive - stack sidebar below on smaller screens */
@media (max-width: 1000px) {
    .eval-details-modal {
        max-width: 95vw;
    }
    
    .eval-details-modal .modal-body-container {
        flex-direction: column;
        max-height: 80vh;
    }
    
    .eval-details-modal .modal-sidebar {
        width: 100%;
        min-width: auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
        max-height: 300px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .eval-runner-panels {
        grid-template-columns: 1fr 1fr;
    }
    
    .eval-runner-panels .api-response-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .evals-controls {
        grid-template-columns: 1fr;
    }
    
    .evals-status {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .scores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .paste-textarea {
        min-height: 250px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .api-response-grid {
        grid-template-columns: 1fr;
    }
    
    .response-comparison-modal .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .response-comparison-modal .modal-footer .btn {
        width: 100%;
    }
    
    .eval-runner-panels {
        grid-template-columns: 1fr;
    }
    
    .eval-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .eval-selector select {
        min-width: auto;
    }
}

