/* Professional SLO Mappings Dashboard Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-text {
    flex: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.5rem;
}

.header p {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Course Selector */
.course-selector-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 300px;
}

.course-selector-label {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.course-selector {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.course-selector:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.course-selector:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SLO Groups Container */
.slo-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* SLO Group */
.slo-group {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.slo-group:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* SLO Group Header */
.slo-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.slo-id-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slo-id {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    background: #3498db;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    min-width: 100px;
    text-align: center;
}

.match-count {
    font-size: 0.9rem;
    color: #666;
    background: #ecf0f1;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.blooms-level-header {
    font-size: 0.9rem;
    background: #fff3e0;
    color: #e65100;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    border: 1px solid #ffcc80;
}

.slo-outcome {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
    font-weight: 500;
}

/* Matches List */
.matches-list {
    padding: 0;
}

/* Match Item */
.match-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    position: relative;
}

.match-item:last-child {
    border-bottom: none;
}

.match-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.match-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.unit-info, .session-info, .page-info, .blooms-level-info {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.unit-info {
    background: #e3f2fd;
    color: #1565c0;
}

.session-info {
    background: #f3e5f5;
    color: #7b1fa2;
}

.page-info {
    background: #e8f5e8;
    color: #2e7d32;
}

.blooms-level-info {
    background: #fff3e0;
    color: #e65100;
    font-weight: 600;
}

.confidence-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confidence-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
}

.confidence-high { background: #27ae60; }
.confidence-medium { background: #f39c12; }
.confidence-low { background: #e74c3c; }

.enhancement-dot, .no-enhancement-dot {
    font-size: 1.2rem;
    line-height: 1;
}

.enhancement-dot {
    color: #27ae60;
}

.no-enhancement-dot {
    color: #bdc3c7;
}

.match-quote {
    margin-top: 0.8rem;
}

.quote-container {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
    overflow: hidden;
}

.quote-text {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.5;
    font-style: italic;
    padding: 0.8rem;
    flex: 1;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.quote-actions {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #e9ecef;
    border-left: 1px solid #dee2e6;
}

.copy-btn {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.details-btn {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.details-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.details-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Detail View */
.detail-view {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.detail-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.detail-content {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blooms-level-badge {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #ffcc80;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.comparison-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-column {
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #ecf0f1;
}

.comparison-column h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.original-column h4 {
    color: #8e44ad;
    border-bottom-color: #8e44ad;
}

.enhanced-column h4 {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

/* Sticky Back Button */
.sticky-back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 25px;
}

.back-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.back-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.4);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .confidence-score {
        align-self: flex-end;
    }

    .slo-id-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comparison-view {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .course-selector-container {
        width: 100%;
        min-width: unset;
    }

    .container {
        padding: 0 15px;
    }

    .match-item {
        padding: 1rem;
    }

    .match-item:hover {
        transform: none;
    }

    .sticky-back-button {
        top: 15px;
        left: 15px;
    }

    .back-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.filter-sidebar {
    width: 25%;
    min-width: 280px;
    align-self: flex-start;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
}

/* Filter Controls */
/* Advanced Filter Controls */
.filter-controls {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.filter-header {
    text-align: center;
    margin-bottom: 1rem;
}

.filter-header h3 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.filter-result-count {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Reset Filters Button */
.reset-filters-btn {
    width: 100%;
    padding: 0.65rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.reset-filters-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.filter-icon {
    font-size: 1rem;
}

/* Search Input */
.filter-search-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Select Dropdowns */
.filter-select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Checkbox Group */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.filter-checkbox-label:hover {
    background: #f8f9fa;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3498db;
}

/* Show More Button */
.show-more-btn {
    width: 100%;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #3498db;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
}

/* Filtered stats indicator */
.stat.stat-filtered .stat-number {
    color: #e67e22;
    font-weight: 700;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    color: #666;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive filter controls */
@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-btn {
        width: auto;
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        flex: 1 1 100%;
    }

    .filter-count {
        padding: 0.15rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.hidden { display: none; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* New styles for approval and editing functionality */

/* Approval functionality */
.match-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.approval-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.approval-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.approval-checkbox:hover {
    background: rgba(39, 174, 96, 0.1);
}

.approval-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    color: transparent;
}

.approval-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.approval-label {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.approval-checkbox input[type="checkbox"]:checked ~ .approval-label {
    color: #27ae60;
    font-weight: 600;
}

/* Approved with Changes Badge (Read-only on dashboard) */
.approved-with-changes-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: help;
    user-select: none;
}

/* Approved item styling */
.match-item.approved {
    border-left: 4px solid #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.match-item.approved .match-header {
    background: rgba(39, 174, 96, 0.08);
}

/* Stats complete indicator */
.stat.stat-complete .stat-number {
    color: #27ae60;
    font-weight: 700;
}

/* AI Enhancement editing */
.ai-enhancement {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fff4;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.enhancement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.enhancement-icon {
    font-size: 1.1rem;
}

.enhancement-title {
    font-weight: 600;
    color: #155724;
    font-size: 0.9rem;
}

.enhancement-content {
    position: relative;
}

.enhancement-text {
    background: white;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.enhancement-text:hover {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.enhancement-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .save-btn, .cancel-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #007bff;
    color: white;
}

.edit-btn:hover {
    background: #0056b3;
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #1e7e34;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #545b62;
}

/* Enhancement editor */
.enhancement-editor {
    background: white;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.enhancement-textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    outline: none;
    font-family: inherit;
}

.editor-actions {
    padding: 0.5rem 0.8rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Detail Page Styles */
.quote-with-copy {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-quote-text {
    flex: 1;
}

.copy-btn-detail {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-btn-detail:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.copy-btn-detail:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.detail-approval-section {
    background: white;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.approval-controls-detail {
    margin-top: 1rem;
}

.approval-checkbox-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.approval-checkbox-large:hover {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
}

.approval-checkbox-large input[type="checkbox"] {
    display: none;
}

.checkmark-large {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    color: transparent;
    font-weight: bold;
}

.approval-checkbox-large input[type="checkbox"]:checked + .checkmark-large {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.approval-label-large {
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.approval-checkbox-large input[type="checkbox"]:checked ~ .approval-label-large {
    color: #27ae60;
}

/* Detail Enhancement Editing */
.enhancement-content-detail {
    position: relative;
}

.enhancement-text-detail {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
}

.enhancement-text-detail:hover {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.enhancement-actions-detail {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.enhancement-editor-detail {
    background: white;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.enhancement-textarea-detail {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 150px;
    height: auto;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.editor-actions-detail {
    padding: 0.8rem 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

/* Rejected checkbox styling */
.rejected-checkbox:hover {
    background: rgba(231, 76, 60, 0.1);
}

.rejected-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.rejected-checkbox input[type="checkbox"]:checked ~ .approval-label {
    color: #e74c3c;
    font-weight: 600;
}

/* Approved with changes checkbox styling */
.approved-with-changes-checkbox:hover {
    background: rgba(243, 156, 18, 0.1);
}

.approved-with-changes-checkbox input[type="checkbox"]:checked + .checkmark-large {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

.approved-with-changes-checkbox input[type="checkbox"]:checked ~ .approval-label-large {
    color: #f39c12;
}

/* Rejected checkbox large styling */
.rejected-checkbox-large:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.rejected-checkbox-large input[type="checkbox"]:checked + .checkmark-large {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.rejected-checkbox-large input[type="checkbox"]:checked ~ .approval-label-large {
    color: #e74c3c;
}

/* Multiple checkboxes in detail view */
.approval-controls-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Notes section styling */
.detail-notes-section {
    background: white;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #f39c12;
}

.notes-editor {
    margin-top: 1rem;
}

.notes-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.save-notes-btn {
    margin-top: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-notes-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.save-notes-btn:active {
    transform: translateY(0);
}
/* ========== Questions Section ========== */

.questions-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid #e3f2fd;
}

.questions-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.questions-section > p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.questions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.question-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #2196f3;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.question-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2196f3;
}

.question-id {
    font-size: 0.85rem;
    color: #666;
    background: #e3f2fd;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
}

.question-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.question-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-option:hover {
    border-color: #90caf9;
    background: #f5f5f5;
}

.question-option.option-correct {
    background: #e8f5e9;
    border-color: #4caf50;
}

.option-letter {
    font-weight: 700;
    font-size: 1rem;
    color: white;
    background: #2196f3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-correct .option-letter {
    background: #4caf50;
}

.option-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.option-check {
    font-size: 1.3rem;
    color: #4caf50;
    font-weight: 700;
    flex-shrink: 0;
}

.question-answer {
    padding: 0.75rem 1rem;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.question-answer strong {
    color: #e65100;
    margin-right: 0.5rem;
}

.correct-answer-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.question-explanation {
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    line-height: 1.6;
}

.question-explanation strong {
    color: #1976d2;
    margin-right: 0.5rem;
}

/* Question Approval Status */
.question-approval-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.approval-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.approval-badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.approval-badge.rejected {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.approval-badge.pending {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ff9800;
}

/* Question Actions */
.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    gap: 1rem;
    flex-wrap: wrap;
}

.question-approval-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.question-approval-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.question-approval-checkbox:hover {
    border-color: #4caf50;
    background: #f1f8f4;
}

.question-approval-checkbox.rejected-checkbox:hover {
    border-color: #f44336;
    background: #fef5f5;
}

.question-approval-checkbox input[type="checkbox"] {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.question-approval-checkbox .checkmark {
    font-size: 1.1rem;
    font-weight: 700;
}

.question-approval-checkbox .approval-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.edit-question-btn,
.save-question-btn,
.cancel-edit-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-question-btn {
    background: #2196f3;
    color: white;
}

.edit-question-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.save-question-btn {
    background: #4caf50;
    color: white;
}

.save-question-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.cancel-edit-btn {
    background: #f44336;
    color: white;
}

.cancel-edit-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* Question Edit Fields */
.edit-question-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #2196f3;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    background: white;
}

.edit-question-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.edit-option-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #2196f3;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
}

.edit-option-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .questions-list {
        grid-template-columns: 1fr;
    }

    .questions-section {
        padding: 1rem;
    }

    .question-card {
        padding: 1rem;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .option-text {
        font-size: 0.9rem;
    }

    .question-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .question-approval-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .question-approval-checkbox {
        width: 100%;
    }

    .edit-question-btn,
    .save-question-btn,
    .cancel-edit-btn {
        width: 100%;
    }
}
