/* static/css/benchmark_generation.css */

/* --- General --- */
.upload-area { border: 2px dashed #ced4da; border-radius: .375rem; padding: 1.5rem; text-align: center; cursor: pointer; background-color: #f8f9fa; }
.upload-area.dragover { background-color: #e9ecef; }
.upload-area .upload-icon { font-size: 2rem; color: #adb5bd; margin-bottom: 0.5rem; }
.file-previews { max-height: 120px; overflow-y: auto; }

/* --- Q&A Curation Cards --- */
.qa-card {
    border-left: 4px solid #dee2e6;
    transition: border-color 0.3s ease;
}
.qa-card.is-approved {
    border-left-color: #198754; /* Green for approved */
}
.qa-card.is-rejected {
    border-left-color: #dc3545; /* Red for rejected */
    background-color: #f8f9fa;
}
.qa-card.is-rejected .editable-content,
.qa-card.is-rejected .approval-container {
    opacity: 0.6;
}
.qa-card.is-rejected .editable-label {
    text-decoration: line-through;
}

.editable-label {
    font-weight: 600;
    color: #6c757d;
    width: 2rem; /* Fixed width for Q: and A: */
}
.editable-content {
    border: none;
    background-color: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    width: 100%;
    resize: none;
    overflow-y: hidden; /* JS will handle height */
}
.editable-content:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.edit-controls .btn {
    width: 32px;
    height: 32px;
    padding: 0;
}

/* --- Approval Controls --- */
.approval-container {
    padding-left: 2.5rem; /* Align under Q/A labels */
}
.approval-item {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.approval-item:hover {
    background-color: #e9ecef;
}
.approval-item input {
    display: none; /* Hide the actual checkbox */
}
/* Style the label to look like a checkbox */
.approval-item .checkbox-icon {
    color: #ced4da;
}
.approval-item input:checked ~ .checkbox-icon {
    color: #198754; /* Green check */
}
/* In static/css/benchmark_generation.css */
.upload-area.disabled-upload {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9ecef;
}
/* Make the "click to browse" text unclickable for guests */
.upload-area.disabled-upload span {
    pointer-events: none;
}
@media (min-width: 576px) {
    .display-5.fw-bold {
        font-size: 1.8rem !important;
    }
    
    .lead.text-muted {
        font-size: 1rem !important;
    }
}