/* =============================================
   evaluation.css — Step wizard styles
   ============================================= */

/* ── Step Progress ── */
.step-progress-wrap { padding:24px 32px 0; }
.step-progress {
    display:flex; align-items:center;
    background:white; border-radius:12px;
    padding:18px 28px; box-shadow:0 1px 3px rgba(0,0,0,0.08);
    margin-bottom:24px; gap:0;
}
.step-item { display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; }
.step-circle {
    width:36px; height:36px; border-radius:50%;
    background:#e2e8f0; color:#94a3b8;
    font-weight:700; font-size:14px;
    display:flex; align-items:center; justify-content:center;
    transition:all 0.3s;
}
.step-item > span { font-size:11px; color:#94a3b8; white-space:nowrap; font-weight:500; }
.step-item.active .step-circle { background:var(--blue-primary); color:white; box-shadow:0 4px 12px rgba(26,86,219,0.3); }
.step-item.active > span { color:var(--blue-primary); font-weight:600; }
.step-item.done .step-circle { background:#10b981; color:white; }
.step-item.done > span { color:#10b981; }
.step-line { flex:1; height:2px; background:#e2e8f0; margin:0 8px; margin-bottom:22px; }

/* ── Eval Container ── */
.eval-container { padding:0 32px 32px; }
.eval-step { display:none; }
.eval-step.active { display:block; }

/* ── Step Header ── */
.step-header {
    background:white; border-radius:12px;
    padding:24px 28px; margin-bottom:20px;
    border-left:4px solid var(--blue-primary);
    box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.step-badge {
    display:inline-block; background:#dbeafe; color:var(--blue-primary);
    font-size:11px; font-weight:700; padding:3px 10px;
    border-radius:20px; letter-spacing:0.5px; margin-bottom:8px;
}
.step-header h2 { font-family:'DM Serif Display',serif; font-size:22px; color:#1e293b; margin-bottom:6px; }
.step-header p { font-size:13px; color:#64748b; line-height:1.6; }

/* ── Form Group ── */
.form-group {
    background:white; border-radius:12px;
    padding:20px 24px; margin-bottom:16px;
    box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.form-group label { display:block; font-size:13px; font-weight:600; color:#1e293b; margin-bottom:12px; }
.required { color:#ef4444; margin-left:2px; }
.form-input {
    width:100%; padding:11px 16px;
    border:2px solid #e2e8f0; border-radius:8px;
    font-size:14px; font-family:'DM Sans',sans-serif; color:#1e293b;
    outline:none; transition:border-color 0.2s;
}
.form-input:focus { border-color:var(--blue-primary); }

/* ── Diagnostic Cards Grid ── */
.diag-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }

.diag-card {
    background:white; border:2px solid var(--gray-200);
    border-radius:14px; padding:22px 20px;
    cursor:pointer; transition:all 0.25s;
    position:relative; overflow:hidden;
}
.diag-card::before {
    content:''; position:absolute; top:0; left:0;
    width:4px; height:100%; background:var(--gray-200);
    transition:background 0.25s;
}
.diag-card:hover { border-color:#93c5fd; transform:translateY(-2px); box-shadow:0 6px 20px rgba(26,86,219,0.1); }
.diag-card:hover::before { background:#93c5fd; }
.diag-card.selected { border-color:var(--blue-primary); background:#f0f5ff; box-shadow:0 6px 20px rgba(26,86,219,0.15); }
.diag-card.selected::before { background:var(--blue-primary); }

.diag-card-emoji { font-size:34px; margin-bottom:10px; display:block; line-height:1; }
.diag-card-num {
    position:absolute; top:16px; right:18px;
    font-size:32px; font-family:'DM Serif Display',serif;
    color:var(--gray-200); line-height:1;
}
.diag-card h4 { font-size:15px; font-weight:600; color:#1e293b; margin-bottom:6px; }
.diag-card p { font-size:12px; color:#64748b; line-height:1.55; margin-bottom:10px; }
.diag-example {
    background:#f8fafc; border-left:3px solid #e2e8f0;
    border-radius:0 6px 6px 0; padding:7px 10px;
    font-size:11px; color:#94a3b8; font-style:italic; line-height:1.4;
}
.diag-card.selected .diag-example { border-left-color:var(--blue-primary); background:#dbeafe; color:#1e40af; }

/* Phase result confirmation box */
.phase-confirm-box {
    display:none; align-items:center; gap:16px;
    background:linear-gradient(135deg,#eff6ff,#dbeafe);
    border:2px solid var(--blue-primary);
    border-radius:12px; padding:16px 20px; margin-top:16px;
    animation:slideIn 0.3s ease;
}
.phase-confirm-box.show { display:flex; }
@keyframes slideIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.phase-confirm-emoji { font-size:32px; flex-shrink:0; }
.phase-confirm-content { flex:1; }
.phase-confirm-label { font-size:11px; font-weight:700; color:var(--blue-primary); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:4px; }
.phase-confirm-name { font-size:17px; font-weight:700; color:#1e293b; font-family:'DM Serif Display',serif; }
.phase-confirm-desc { font-size:12px; color:#64748b; margin-top:3px; }
.phase-confirm-next {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--blue-primary); color:white;
    padding:10px 20px; border-radius:8px;
    font-size:13px; font-weight:600; border:none;
    cursor:pointer; font-family:'DM Sans',sans-serif;
    transition:all 0.2s; flex-shrink:0;
}
.phase-confirm-next:hover { background:#1e3a8a; transform:translateX(2px); }

/* ── Info Box ── */
.info-box {
    display:flex; align-items:center; gap:10px;
    background:#f0f9ff; border:1px solid #bae6fd;
    border-radius:8px; padding:12px 16px;
    color:#0369a1; font-size:13px; font-weight:500;
}

/* ── Perspective Grid ── */
.perspective-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.persp-option {
    padding:18px 16px; border:2px solid #e2e8f0;
    border-radius:10px; cursor:pointer;
    text-align:center; transition:all 0.2s;
}
.persp-option:hover { border-color:#93c5fd; background:#f8faff; }
.persp-option.selected { border-color:var(--blue-primary); background:#eff6ff; }
.persp-option i { font-size:22px; color:var(--blue-primary); margin-bottom:8px; }
.persp-option h4 { font-size:14px; font-weight:600; color:#1e293b; margin-bottom:4px; }
.persp-option p { font-size:11px; color:#64748b; }

/* ── Criteria Tags ── */
.criteria-tags { display:flex; gap:8px; flex-wrap:wrap; }
.criteria-tag { padding:5px 14px; border-radius:20px; font-size:12px; font-weight:600; }
.tag-blue { background:#dbeafe; color:#1a56db; }
.tag-green { background:#d1fae5; color:#059669; }
.tag-indigo { background:#e0e7ff; color:#4f46e5; }
.tag-orange { background:#fef3c7; color:#d97706; }

/* ── Extraction Summary ── */
.extraction-summary { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.summary-item {
    display:flex; align-items:center; gap:8px;
    background:white; border-radius:8px; padding:10px 16px;
    font-size:13px; font-weight:500; color:#1e293b;
    box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.summary-item i { color:var(--blue-primary); }

/* ── Indicator Preview ── */
.indicator-preview {
    background:white; border-radius:12px; padding:20px;
    box-shadow:0 1px 3px rgba(0,0,0,0.06); margin-bottom:16px; min-height:120px;
}
.loading-state, .empty-state {
    display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:10px; padding:40px; color:#94a3b8; font-size:14px;
}
.loading-state i, .empty-state i { font-size:28px; }
.indicator-group { margin-bottom:16px; }
.group-header {
    display:flex; align-items:center; gap:8px;
    font-size:11px; font-weight:700; color:var(--blue-primary);
    text-transform:uppercase; letter-spacing:0.5px;
    margin-bottom:8px; padding-bottom:6px;
    border-bottom:1px solid #e2e8f0;
}
.group-list { display:flex; flex-direction:column; gap:4px; }

/* Indicator row with tooltip */
.ind-preview-row {
    display:flex; align-items:center; gap:10px;
    padding:9px 12px; border-radius:8px;
    background:#f8fafc; font-size:13px;
    transition: background 0.15s;
}
.ind-preview-row:hover { background:#eff6ff; }
.ind-num {
    width:24px; height:24px; background:#dbeafe; color:var(--blue-primary);
    border-radius:50%; font-size:11px; font-weight:700;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ind-name { flex:1; color:#1e293b; line-height:1.4; }
.ind-category { font-size:11px; color:#64748b; background:#f1f5f9; padding:2px 8px; border-radius:4px; white-space:nowrap; }

/* ── Customize ── */
.customize-info {
    display:flex; align-items:flex-start; gap:10px;
    background:#fffbeb; border:1px solid #fcd34d;
    border-radius:8px; padding:12px 16px;
    font-size:13px; color:#92400e; margin-bottom:16px;
}
.customize-group { margin-bottom:16px; }
.customize-row {
    display:flex; align-items:flex-start; gap:12px;
    padding:12px 16px; border:2px solid #e2e8f0;
    border-radius:8px; cursor:pointer; margin-bottom:6px;
    background:white; transition:all 0.2s;
}
.customize-row.checked { border-color:var(--blue-primary); background:#eff6ff; }
.customize-row input[type="checkbox"] { margin-top:3px; width:16px; height:16px; flex-shrink:0; accent-color:var(--blue-primary); }
.customize-info-text { flex:1; }
.customize-info-text .ind-name { display:block; font-size:13px; font-weight:500; color:#1e293b; margin-bottom:2px; }
.ind-cat-tag { font-size:10px; background:#f1f5f9; color:#64748b; padding:3px 8px; border-radius:4px; white-space:nowrap; flex-shrink:0; }

.selected-count-bar {
    background:var(--blue-primary); color:white;
    border-radius:8px; padding:12px 20px;
    font-size:13px; font-weight:500; margin-top:12px;
    display:flex; align-items:center; gap:8px;
}

/* ── Likert Scoring Table ── */
.likert-legend { display:flex; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.legend-item { padding:5px 14px; border-radius:20px; font-size:12px; font-weight:600; }
.score-1 { background:#fee2e2; color:#dc2626; }
.score-2 { background:#fed7aa; color:#c2410c; }
.score-3 { background:#fef3c7; color:#d97706; }
.score-4 { background:#d1fae5; color:#059669; }
.score-5 { background:#dbeafe; color:#1d4ed8; }

.scoring-table-wrap {
    background:white; border-radius:12px;
    overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.scoring-table { width:100%; border-collapse:collapse; }
.scoring-table thead tr { background:#1e3a8a; }
.scoring-table th {
    padding:14px 16px; text-align:left;
    font-size:11px; font-weight:600; color:rgba(255,255,255,0.85);
    text-transform:uppercase; letter-spacing:0.5px;
}
.scoring-table tbody tr { border-bottom:1px solid #f1f5f9; transition:background 0.15s; }
.scoring-table tbody tr:hover { background:#f8faff; }
.td-num { text-align:center; font-size:12px; font-weight:700; color:#94a3b8; padding:14px 8px; }
.td-name { padding:14px 16px; font-size:13px; color:#1e293b; line-height:1.4; }

.radio-group { display:flex; gap:6px; justify-content:center; padding:8px; }
.radio-label { display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; }
.radio-label input[type="radio"] { display:none; }
.radio-label span {
    width:38px; height:38px; border-radius:8px;
    border:2px solid #e2e8f0;
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700; color:#94a3b8;
    transition:all 0.15s; cursor:pointer; position:relative;
}
.radio-label input:checked + span { color:white; border-color:transparent; }
.score-opt-1 input:checked + span { background:#dc2626; }
.score-opt-2 input:checked + span { background:#ea580c; }
.score-opt-3 input:checked + span { background:#d97706; }
.score-opt-4 input:checked + span { background:#059669; }
.score-opt-5 input:checked + span { background:#1d4ed8; }
.radio-label span:hover { border-color:var(--blue-primary); color:var(--blue-primary); }

/* Score description below radio */
.score-desc-row td {
    padding:0 16px 12px; font-size:11px; color:#64748b;
    font-style:italic; background:#fafbfc;
}

.criteria-mini { font-size:10px; font-weight:600; padding:3px 8px; border-radius:4px; white-space:nowrap; }
.criteria-mini.economic { background:#dbeafe; color:#1d4ed8; }
.criteria-mini.environmental { background:#d1fae5; color:#059669; }
.criteria-mini.society { background:#e0e7ff; color:#4f46e5; }
.criteria-mini.acceptance { background:#fef3c7; color:#d97706; }
.criteria-mini.satisfaction { background:#fce7f3; color:#be185d; }

/* ── Step Nav ── */
.step-nav { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.btn-next, .btn-back, .btn-submit {
    display:inline-flex; align-items:center; gap:8px;
    padding:11px 24px; border-radius:8px;
    font-size:14px; font-weight:600; cursor:pointer;
    border:none; font-family:'DM Sans',sans-serif; transition:all 0.2s;
}
.btn-next { background:var(--blue-primary); color:white; }
.btn-next:hover { background:#1e3a8a; }
.btn-back { background:#f1f5f9; color:#475569; }
.btn-back:hover { background:#e2e8f0; }
.btn-submit { background:#059669; color:white; }
.btn-submit:hover { background:#047857; }

@media (max-width:768px) {
    .step-progress-wrap { padding:16px 16px 0; }
    .eval-container { padding:0 16px 16px; }
    .diag-grid { grid-template-columns:1fr; }
    .perspective-grid { grid-template-columns:1fr; }
}

/* ── Score Description Row ── */
.score-main-row td { border-bottom: none !important; }
.score-desc-row td {
    padding: 0 16px 12px !important;
    background: #fafbfc;
    border-bottom: 1px solid #f1f5f9 !important;
}

.score-desc-box {
    min-height: 28px;
    display: flex;
    align-items: center;
}

.score-desc-placeholder {
    font-size: 11px;
    color: #cbd5e1;
    font-style: italic;
}

.score-desc-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity:0; transform:translateY(-2px); }
    to   { opacity:1; transform:translateY(0); }
}

.score-desc-badge {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    color: white;
}
.score-badge-1 { background: #dc2626; }
.score-badge-2 { background: #ea580c; }
.score-badge-3 { background: #d97706; }
.score-badge-4 { background: #059669; }
.score-badge-5 { background: #1d4ed8; }

.score-desc-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    font-style: italic;
}

/* ── Access Code Choice Cards ── */
.access-choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-bottom:16px; }
.access-choice-card {
    background:white; border:2px solid #e2e8f0; border-radius:14px;
    padding:24px; cursor:pointer; transition:all 0.25s; text-align:center;
}
.access-choice-card:hover { border-color:#93c5fd; transform:translateY(-2px); box-shadow:0 6px 20px rgba(26,86,219,0.1); }
.access-choice-card.selected { border-color:#1a56db; background:#eff6ff; }
.access-choice-icon {
    width:52px; height:52px; border-radius:14px; margin:0 auto 14px;
    display:flex; align-items:center; justify-content:center; font-size:22px;
}
.access-choice-card h4 { font-size:15px; font-weight:600; color:#1e293b; margin-bottom:8px; }
.access-choice-card p { font-size:12px; color:#64748b; line-height:1.5; }

@media (max-width:768px) { .access-choice-grid { grid-template-columns:1fr; } }



/* =============================================
   DARK MODE FIX — EVALUATION & HISTORY PAGE
   Append this to the BOTTOM of assets/css/style.css
   ============================================= */

/* ── Scoring Table (Likert) ── */
[data-theme="dark"] .td-name,
[data-theme="dark"] .td-num,
[data-theme="dark"] .ind-name,
[data-theme="dark"] .ind-num,
[data-theme="dark"] .group-header,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .step-header h2,
[data-theme="dark"] .step-badge,
[data-theme="dark"] .phase-confirm-name,
[data-theme="dark"] .summary-item,
[data-theme="dark"] .diag-card h4,
[data-theme="dark"] .persp-option h4,
[data-theme="dark"] .access-choice-card h4,
[data-theme="dark"] .customize-info-text .ind-name,
[data-theme="dark"] .history-table-title,
[data-theme="dark"] .history-table th {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .diag-card p,
[data-theme="dark"] .persp-option p,
[data-theme="dark"] .access-choice-card p,
[data-theme="dark"] .ind-category,
[data-theme="dark"] .step-header p,
[data-theme="dark"] .phase-confirm-desc,
[data-theme="dark"] .score-desc-text,
[data-theme="dark"] .score-desc-placeholder,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .loading-state,
[data-theme="dark"] .history-empty p {
    color: #94a3b8 !important;
}

/* ── Row & container backgrounds ── */
[data-theme="dark"] .scoring-table-wrap,
[data-theme="dark"] .indicator-preview,
[data-theme="dark"] .step-progress,
[data-theme="dark"] .step-header,
[data-theme="dark"] .form-group,
[data-theme="dark"] .diag-card,
[data-theme="dark"] .persp-option,
[data-theme="dark"] .access-choice-card,
[data-theme="dark"] .customize-row,
[data-theme="dark"] .ind-preview-row,
[data-theme="dark"] .summary-item,
[data-theme="dark"] .history-table-wrap,
[data-theme="dark"] .hstat-card,
[data-theme="dark"] .code-gate,
[data-theme="dark"] .code-active-bar {
    background: #141d2e !important;
    border-color: #2a374d !important;
}

[data-theme="dark"] .scoring-table tbody tr {
    border-bottom-color: #243044 !important;
}
[data-theme="dark"] .scoring-table tbody tr:hover,
[data-theme="dark"] .history-table tbody tr:hover {
    background: #0f172a !important;
}
[data-theme="dark"] .scoring-table thead tr {
    background: #0a1428 !important;
}
[data-theme="dark"] .score-desc-row td,
[data-theme="dark"] .ind-preview-row {
    background: #0f172a !important;
}

/* ── Tags / badges keep their accent color but stay readable ── */
[data-theme="dark"] .ind-category,
[data-theme="dark"] .ind-cat-tag,
[data-theme="dark"] .persp-pill,
[data-theme="dark"] .indicator-count-badge {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

/* ── History table cells ── */
[data-theme="dark"] .td-date,
[data-theme="dark"] .history-table td {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .td-time {
    color: #64748b !important;
}

/* ── Code gate text ── */
[data-theme="dark"] .code-gate h3 {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .code-gate p,
[data-theme="dark"] .code-active-info {
    color: #94a3b8 !important;
}

/* =============================================
   DARK MODE FIX PART 2 — EVALUATION WIZARD
   Append this to the BOTTOM of assets/css/style.css
   (after dark-mode-fix.css content)
   ============================================= */

/* ── Step Badge ("Step 1", "Step 3" pill) ── */
[data-theme="dark"] .step-badge {
    background: rgba(59,130,246,0.18) !important;
    color: #93c5fd !important;
}

/* ── Step Circle (stepper numbers 1-6) ── */
[data-theme="dark"] .step-circle {
    background: #243044 !important;
    color: #64748b !important;
}
[data-theme="dark"] .step-item > span {
    color: #64748b !important;
}
[data-theme="dark"] .step-item.active .step-circle {
    background: var(--blue-primary) !important;
    color: white !important;
}
[data-theme="dark"] .step-item.active > span {
    color: #93c5fd !important;
}
[data-theme="dark"] .step-item.done .step-circle {
    background: #10b981 !important;
    color: white !important;
}
[data-theme="dark"] .step-item.done > span {
    color: #34d399 !important;
}
[data-theme="dark"] .step-line {
    background: #243044 !important;
}

/* ── Phase Confirmation Box ── */
[data-theme="dark"] .phase-confirm-box {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.08)) !important;
    border-color: var(--blue-primary) !important;
}
[data-theme="dark"] .phase-confirm-label {
    color: #93c5fd !important;
}
[data-theme="dark"] .phase-confirm-name {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .phase-confirm-desc {
    color: #94a3b8 !important;
}

/* ── Indicator Number Circle (.ind-num) ── */
[data-theme="dark"] .ind-num {
    background: rgba(59,130,246,0.2) !important;
    color: #93c5fd !important;
}

/* ── Diagnostic Card Selected State ── */
[data-theme="dark"] .diag-card.selected {
    background: rgba(59,130,246,0.1) !important;
    border-color: var(--blue-primary) !important;
}
[data-theme="dark"] .diag-card-num {
    color: #334155 !important;
}
[data-theme="dark"] .diag-example {
    background: #0f172a !important;
    border-left-color: #334155 !important;
    color: #64748b !important;
}
[data-theme="dark"] .diag-card.selected .diag-example {
    background: rgba(59,130,246,0.12) !important;
    border-left-color: var(--blue-primary) !important;
    color: #93c5fd !important;
}

/* ── Perspective Option Selected State ── */
[data-theme="dark"] .persp-option {
    background: #141d2e !important;
    border-color: #2a374d !important;
}
[data-theme="dark"] .persp-option:hover {
    background: #1a2740 !important;
    border-color: #3b5a8a !important;
}
[data-theme="dark"] .persp-option.selected {
    background: rgba(59,130,246,0.12) !important;
    border-color: var(--blue-primary) !important;
}
[data-theme="dark"] .persp-option i {
    color: #60a5fa !important;
}

/* ── Access Choice Card Selected ── */
[data-theme="dark"] .access-choice-card.selected {
    background: rgba(59,130,246,0.12) !important;
    border-color: var(--blue-primary) !important;
}

/* ── Customize Row Checked ── */
[data-theme="dark"] .customize-row.checked {
    background: rgba(59,130,246,0.12) !important;
    border-color: var(--blue-primary) !important;
}
[data-theme="dark"] .customize-row {
    background: #0f172a !important;
    border-color: #2a374d !important;
}

/* ── Selected Count Bar ── */
[data-theme="dark"] .selected-count-bar {
    background: var(--blue-primary) !important;
    color: white !important;
}

/* ── Extraction Summary Items / Pills ── */
[data-theme="dark"] .summary-item i {
    color: #60a5fa !important;
}

/* ── Criteria Tags / Mini Tags (keep colored but legible) ── */
[data-theme="dark"] .criteria-tag.tag-blue { background: rgba(59,130,246,0.18) !important; color: #93c5fd !important; }
[data-theme="dark"] .criteria-tag.tag-green { background: rgba(16,185,129,0.18) !important; color: #6ee7b7 !important; }
[data-theme="dark"] .criteria-tag.tag-indigo { background: rgba(99,102,241,0.18) !important; color: #a5b4fc !important; }
[data-theme="dark"] .criteria-tag.tag-orange { background: rgba(217,119,6,0.18) !important; color: #fcd34d !important; }

[data-theme="dark"] .criteria-mini.economic { background: rgba(59,130,246,0.18) !important; color: #93c5fd !important; }
[data-theme="dark"] .criteria-mini.environmental { background: rgba(16,185,129,0.18) !important; color: #6ee7b7 !important; }
[data-theme="dark"] .criteria-mini.society { background: rgba(99,102,241,0.18) !important; color: #a5b4fc !important; }
[data-theme="dark"] .criteria-mini.acceptance { background: rgba(217,119,6,0.18) !important; color: #fcd34d !important; }
[data-theme="dark"] .criteria-mini.satisfaction { background: rgba(219,39,119,0.18) !important; color: #f9a8d4 !important; }

/* ── Likert Legend Pills (1=Very Low ... 5=Very High) ── */
[data-theme="dark"] .score-1 { background: rgba(220,38,38,0.18) !important; color: #fca5a5 !important; }
[data-theme="dark"] .score-2 { background: rgba(234,88,12,0.18) !important; color: #fdba74 !important; }
[data-theme="dark"] .score-3 { background: rgba(217,119,6,0.18) !important; color: #fcd34d !important; }
[data-theme="dark"] .score-4 { background: rgba(5,150,105,0.18) !important; color: #6ee7b7 !important; }
[data-theme="dark"] .score-5 { background: rgba(29,78,216,0.18) !important; color: #93c5fd !important; }

/* ── Radio Score Buttons (unselected state) ── */
[data-theme="dark"] .radio-label span {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}
[data-theme="dark"] .radio-label span:hover {
    border-color: var(--blue-primary) !important;
    color: #93c5fd !important;
}

/* ── Form input placeholder visibility ── */
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .code-gate-input::placeholder {
    color: #475569 !important;
}

/* =============================================
   DARK MODE FIX PART 3 — HISTORY TABLE HEADER
   Append this to the BOTTOM of assets/css/style.css
   ============================================= */

[data-theme="dark"] .history-table thead tr {
    background: #0a1428 !important;
}
[data-theme="dark"] .history-table th {
    color: #93c5fd !important;
}
[data-theme="dark"] .history-table-header {
    border-bottom-color: #243044 !important;
}