/* ==========================================================================
   AUTOGRADING AI — DARK MODE SURFACES & INLINE STYLE HARMONIZATION
   Modularized from head.html to maintain strict file length modularity (<= 800 lines)
   and provide full dark-mode coverage across modals, portals, and studios.
   ========================================================================== */

/* Universal Modal & Studio Surface Dark Background Guard */
[data-theme="dark"] .modal-content div[style*="background: #f8fafc"],
[data-theme="dark"] .modal-content div[style*="background: #f1f5f9"],
[data-theme="dark"] .modal-content div[style*="background: #fafafa"],
[data-theme="dark"] .modal-content div[style*="background: #ffffff"],
[data-theme="dark"] .modal-content div[style*="background: #fff;"],
[data-theme="dark"] .modal-content div[style*="background: white"],
[data-theme="dark"] .modal-content div[style*="background:white"],
[data-theme="dark"] #assessment-studio-view div[style*="background: #f8fafc"],
[data-theme="dark"] #assessment-studio-view div[style*="background: #fff"],
[data-theme="dark"] #assessment-studio-view div[style*="background: #ffffff"],
[data-theme="dark"] #assessment-studio-view .studio-card {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #assessment-studio-view h1,
[data-theme="dark"] #assessment-studio-view h2,
[data-theme="dark"] #assessment-studio-view h3,
[data-theme="dark"] #assessment-studio-view h4,
[data-theme="dark"] #assessment-studio-view label,
[data-theme="dark"] #assessment-studio-view strong {
  color: #f8fafc !important;
}

[data-theme="dark"] #assessment-studio-view p,
[data-theme="dark"] #assessment-studio-view span[style*="color: #475569"],
[data-theme="dark"] #assessment-studio-view span[style*="color: #64748b"] {
  color: #94a3b8 !important;
}

[data-theme="dark"] .modal-content thead[style*="background: #f8fafc"],
[data-theme="dark"] .modal-content tr[style*="background: #f8fafc"],
[data-theme="dark"] .modal-content tr[style*="background: #f1f5f9"],
[data-theme="dark"] .data-table thead tr {
  background: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .data-table thead th {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Modal Sub-Containers and Specialized Cards in Dark Mode */
[data-theme="dark"] .rubric-export-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] #modal-reset-student-password div[style*="background: #fef3c7"] {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] #card-export-zip {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] #card-export-zip strong {
  color: #4ade80 !important;
}

[data-theme="dark"] #card-export-xlsx {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] #card-export-xlsx strong {
  color: #60a5fa !important;
}

[data-theme="dark"] #payment-live-status-container {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #4ade80 !important;
}

[data-theme="dark"] #payment-live-status-text {
  color: #4ade80 !important;
}

[data-theme="dark"] #modal-student-accounts div[style*="background: #f0fdf4"] {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] #modal-student-accounts div[style*="background: #fffbeb"] {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] #stat-class-active-accounts {
  color: #4ade80 !important;
}

[data-theme="dark"] #stat-class-pending-accounts {
  color: #fbbf24 !important;
}

[data-theme="dark"] #qr-direct-link {
  background: #151e32 !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
}

[data-theme="dark"] #qr-modal-exam-badge {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .upload-field-card {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] #edit-sub-dropzone {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] #edit-sub-dropzone div {
  color: #93c5fd !important;
}

[data-theme="dark"] #edit-sub-existing-gallery {
  background: #151e32 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] #edit-sub-graded-alert {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] #form-batch-import-students div[style*="background: #eef2ff"],
[data-theme="dark"] #modal-batch-import-students div[style*="background: #eef2ff"] {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] #form-batch-import-students label,
[data-theme="dark"] #modal-batch-import-students label {
  color: #c7d2fe !important;
}

[data-theme="dark"] #portal-exam-selector {
  background: #151e32 !important;
  color: #f8fafc !important;
  border-color: #6366f1 !important;
}

[data-theme="dark"] #portal-live-submitted-card {
  background: #151e32 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] #portal-live-exam-title {
  color: #f8fafc !important;
}

[data-theme="dark"] #portal-live-submitted-card div {
  color: #cbd5e1 !important;
}

[data-theme="dark"] #portal-success-receipt {
  background: rgba(5, 150, 105, 0.15) !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
}

[data-theme="dark"] #portal-success-receipt h4 {
  color: #34d399 !important;
}

[data-theme="dark"] #portal-success-receipt div {
  color: #a7f3d0 !important;
}

[data-theme="dark"] #portal-routing-info {
  background: #151e32 !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .portal-manual-entry-box {
  background: #151e32 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .portal-manual-entry-box label {
  color: #f8fafc !important;
}

[data-theme="dark"] .upload-dropzone-box {
  background: #151e32 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] #portal-ocr-loading {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #4ade80 !important;
}

[data-theme="dark"] .collusion-modal-content,
[data-theme="dark"] .remediation-modal-content {
  background: var(--card-bg, #151e32) !important;
  color: var(--text-main, #f8fafc) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .rubric-studio-left {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .rubric-studio-right,
[data-theme="dark"] .rubric-export-card {
  background: #151e32 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .rubric-export-card:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
}

[data-theme="dark"] .rubric-badge-neutral {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ==========================================================================
   ASSESSMENT STUDIO ("KHẢO THÍ SỐ AI") & SELECT DROPDOWN FIXES
   ========================================================================== */
select,
select.field,
#assessment-studio-view select,
.modal-content select {
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  padding-right: 36px !important;
}

[data-theme="dark"] #assessment-studio-view,
[data-theme="dark"] #math-ocr-view {
  background: var(--bg, #061329) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #assessment-studio-view .ocr-header-bar,
[data-theme="dark"] #assessment-studio-view .studio-header-bar,
[data-theme="dark"] .ocr-header-bar.studio-header-bar {
  background: var(--surface, #0b1d3b) !important;
  border-color: var(--border, #1d385f) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #assessment-studio-view .ocr-header-title,
[data-theme="dark"] #assessment-studio-view .ocr-dropzone-title,
[data-theme="dark"] .ocr-dropzone-title {
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #assessment-studio-view .studio-segmented-tabs {
  background: rgba(15, 37, 71, 0.75) !important;
  border-color: rgba(43, 74, 122, 0.8) !important;
}

[data-theme="dark"] #assessment-studio-view .studio-seg-btn {
  color: #94a3b8 !important;
  background: transparent !important;
}

[data-theme="dark"] #assessment-studio-view .studio-seg-btn.active {
  background: #0b1d3b !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.15) !important;
}

[data-theme="dark"] #assessment-studio-view .ocr-dropzone-card,
[data-theme="dark"] #assessment-studio-view .ocr-panel-card,
[data-theme="dark"] #assessment-studio-view .studio-pane-card {
  background: var(--surface, #0b1d3b) !important;
  border-color: var(--border, #1d385f) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #assessment-studio-view textarea,
[data-theme="dark"] #assessment-studio-view input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] #assessment-studio-view select {
  background-color: var(--surface-2, #0f2547) !important;
  border-color: var(--border-strong, #2b4a7a) !important;
  color: var(--text, #e8effa) !important;
}

/* ==========================================================================
   MODAL SURFACES, QR CHIPS, SUBSCRIPTION & PORTAL THEME TOGGLES
   ========================================================================== */
[data-theme="dark"] .modal-content {
  background: var(--surface, #0b1d3b) !important;
  border-color: var(--border, #1d385f) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] .modal-content input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .modal-content select,
[data-theme="dark"] .modal-content textarea {
  background-color: var(--surface-2, #0f2547) !important;
  border-color: var(--border-strong, #2b4a7a) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] .modal-content .btn-qr-chip,
[data-theme="dark"] .modal-content .btn-quota-chip {
  background: var(--surface-2, #0f2547) !important;
  border-color: var(--border-strong, #2b4a7a) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] .modal-content .btn-qr-chip.active,
[data-theme="dark"] .modal-content .btn-quota-chip.active {
  background: var(--primary, #00c5df) !important;
  border-color: var(--primary, #00c5df) !important;
  color: var(--primary-ink, #04263f) !important;
}

[data-theme="dark"] .modal-content [style*="color: #1e3a8a"],
[data-theme="dark"] .modal-content [style*="color:#1e3a8a"],
[data-theme="dark"] .modal-content [style*="color: #0f172a"],
[data-theme="dark"] .modal-content [style*="color:#0f172a"],
[data-theme="dark"] .modal-content [style*="color: #1e293b"],
[data-theme="dark"] .modal-content [style*="color:#1e293b"] {
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] .modal-content [style*="color: #334155"],
[data-theme="dark"] .modal-content [style*="color:#334155"],
[data-theme="dark"] .modal-content [style*="color: #475569"],
[data-theme="dark"] .modal-content [style*="color:#475569"],
[data-theme="dark"] .modal-content [style*="color: #64748b"],
[data-theme="dark"] .modal-content [style*="color:#64748b"] {
  color: var(--muted, #a3b4cd) !important;
}

[data-theme="dark"] #sub-low-quota-warning,
[data-theme="dark"] .modal-content [style*="background: #fef2f2"],
[data-theme="dark"] .modal-content [style*="background:#fef2f2"] {
  background: rgba(229, 72, 77, 0.16) !important;
  border-color: rgba(229, 72, 77, 0.35) !important;
  color: #ff8085 !important;
}

[data-theme="dark"] #sub-low-quota-warning [style*="color"] {
  color: #ffb3b6 !important;
}

[data-theme="dark"] .modal-content [style*="background: #eff6ff"],
[data-theme="dark"] .modal-content [style*="background:#eff6ff"],
[data-theme="dark"] .modal-content [style*="background: #f0f9ff"] {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #btn-portal-theme-toggle,
[data-theme="dark"] #btn-parent-theme-toggle {
  background: var(--surface-2, #0f2547) !important;
  border-color: var(--border-strong, #2b4a7a) !important;
  color: var(--text, #e8effa) !important;
}

.search input,
.search .field,
.search input[type="text"],
.search input[type="search"],
[data-theme="dark"] .search input,
[data-theme="dark"] .search .field,
[data-theme="dark"] .search input[type="text"],
#input-sg-roster-search,
#exam-search-input,
#input-search-exams,
#input-parent-token,
#parent-lookup-input,
#student-search-input,
#input-search-classes {
  padding-left: 38px !important;
}

#exam-hub-search-box,
.exam-hub-search-box-wrap {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.exam-hub-search-box-wrap .exam-search-icon {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}


[data-theme="dark"] #studio-quota-capsule,
[data-theme="dark"] .ocr-quota-capsule,
[data-theme="dark"] #studio-header-quota-badge,
[data-theme="dark"] .ocr-quota-badge,
[data-theme="dark"] #assessment-studio-view [style*="background: #ffffff"],
[data-theme="dark"] #assessment-studio-view [style*="background:#ffffff"] {
  background: var(--surface-2, #0f2547) !important;
  border-color: var(--border-strong, #2b4a7a) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #studio-quota-capsule span,
[data-theme="dark"] #studio-quota-capsule strong,
[data-theme="dark"] .ocr-quota-capsule span,
[data-theme="dark"] .ocr-quota-capsule strong {
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #modal-class-qr .qr-deadline-box,
[data-theme="dark"] #modal-class-qr .qr-deadline-box div,
[data-theme="dark"] #modal-class-qr .qr-deadline-box span:not(#qr-deadline-preview-pill):not(#qr-quota-preview-pill) {
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #modal-teacher-subscription .sub-modal-tab-nav {
  background: var(--surface-3, #142d56) !important;
  border-color: var(--border, #1d385f) !important;
}

[data-theme="dark"] #modal-teacher-subscription .sub-tab-btn {
  color: var(--muted, #a3b4cd) !important;
}

[data-theme="dark"] #modal-teacher-subscription .sub-tab-btn.active,
[data-theme="dark"] #modal-teacher-subscription .sub-tab-btn.btn-primary {
  background: var(--surface, #0b1d3b) !important;
  color: var(--primary, #00c5df) !important;
}

[data-theme="dark"] #modal-teacher-subscription #tab-my-sub > div {
  background: var(--surface-2, #0f2547) !important;
  border-color: var(--border, #1d385f) !important;
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #modal-teacher-subscription #sub-plan-title,
[data-theme="dark"] #modal-teacher-subscription #sub-pages-remaining {
  color: var(--primary, #00c5df) !important;
}

[data-theme="dark"] #modal-teacher-subscription #tab-my-sub ul,
[data-theme="dark"] #modal-teacher-subscription #tab-my-sub li,
[data-theme="dark"] #modal-teacher-subscription #tab-my-sub h4,
[data-theme="dark"] #modal-teacher-subscription #tab-my-sub strong,
[data-theme="dark"] #modal-teacher-subscription #tab-my-sub div {
  color: var(--text, #e8effa) !important;
}

[data-theme="dark"] #modal-teacher-subscription #sub-quota-breakdown > div {
  background: var(--surface, #0b1d3b) !important;
  border-color: var(--border, #1d385f) !important;
}

/* ==========================================================================
   CUSTOM CONFIRM DIALOG DARK MODE (#modal-custom-confirm)
   ========================================================================== */
[data-theme="dark"] #modal-custom-confirm .modal-content,
[data-theme="dark"] #modal-custom-confirm .custom-confirm-content {
  background: var(--surface, #09234e) !important;
  border-color: rgba(0, 197, 223, 0.25) !important;
  color: var(--text, #f8fafc) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 197, 223, 0.2) !important;
}

[data-theme="dark"] #modal-custom-confirm #custom-confirm-title {
  color: #f8fafc !important;
}

[data-theme="dark"] #modal-custom-confirm #custom-confirm-message {
  color: #cbd5e1 !important;
}

[data-theme="dark"] #modal-custom-confirm .custom-confirm-icon-wrap {
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}

[data-theme="dark"] #modal-custom-confirm.is-danger .custom-confirm-icon-wrap {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

[data-theme="dark"] #modal-custom-confirm #btn-custom-confirm-cancel {
  background: #071d42 !important;
  border-color: rgba(0, 197, 223, 0.25) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] #modal-custom-confirm #btn-custom-confirm-cancel:hover {
  background: #103572 !important;
  border-color: rgba(0, 197, 223, 0.45) !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   ASSESSMENT STUDIO BATCH, HISTORY & INLINE DARK SURFACES
   ========================================================================== */
[data-theme="dark"] #studio-batch-progress-container {
  background: #09234e !important;
  border-color: rgba(0, 197, 223, 0.18) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #studio-batch-progress-container #studio-batch-progress-label {
  color: #e2e8f0 !important;
}

[data-theme="dark"] #studio-batch-progress-container #studio-batch-total-cost {
  color: #38bdf8 !important;
}

[data-theme="dark"] #studio-batch-info-bar {
  color: #94a3b8 !important;
}

[data-theme="dark"] #studio-batch-info-bar > div:first-child {
  color: #94a3b8 !important;
}

[data-theme="dark"] #btn-batch-audit-view-history {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  color: #a5b4fc !important;
}

[data-theme="dark"] #btn-batch-audit-clear {
  background: rgba(220, 38, 38, 0.15) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #f87171 !important;
}

[data-theme="dark"] #btn-batch-audit-clear-bottom {
  border-color: rgba(220, 38, 38, 0.4) !important;
  color: #f87171 !important;
}

[data-theme="dark"] #studio-audit-history-container > div:first-child {
  background: #09234e !important;
  border-color: rgba(0, 197, 223, 0.18) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #studio-audit-history-container label {
  color: #f8fafc !important;
}

[data-theme="dark"] #studio-audit-cost-tag {
  background: rgba(15, 37, 71, 0.75) !important;
  border-color: rgba(0, 197, 223, 0.25) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] #studio-audit-cost-tag #studio-audit-cost-pages {
  color: #38bdf8 !important;
}

[data-theme="dark"] #studio-audit-queue-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] #studio-audit-queue-banner div[style*="color: #0c4a6e"] {
  color: #f8fafc !important;
}

[data-theme="dark"] #studio-audit-queued-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .history-record-card {
  background: #09234e !important;
  border-color: rgba(0, 197, 223, 0.16) !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   SPEEDGRADER MOBILE STICKY BOTTOM BAR DARK MODE
   ========================================================================== */
[data-theme="dark"] .mobile-sg-sticky-bar {
  background: rgba(9, 35, 78, 0.96) !important;
  border-top-color: rgba(0, 197, 223, 0.25) !important;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .mobile-sg-sticky-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-sg-sticky-score {
  color: #38bdf8 !important;
}

[data-theme="dark"] .mobile-sg-nav-btn {
  background: #071d42 !important;
  border-color: rgba(0, 197, 223, 0.2) !important;
  color: #cbd5e1 !important;
}

/* ==========================================================================
   ZALO INTEGRATION & DISPATCH MODALS DARK MODE
   ========================================================================== */
[data-theme="dark"] .zalo-modal-container,
[data-theme="dark"] .exam-zalo-modal-container,
[data-theme="dark"] .student-zalo-modal-container,
[data-theme="dark"] #modal-exam-zalo-dispatch .modal-dialog,
[data-theme="dark"] #modal-student-zalo-dispatch .modal-dialog,
[data-theme="dark"] #modal-zalo-integration .modal-dialog {
  background: var(--surface, #09234e) !important;
  border-color: rgba(0, 197, 223, 0.25) !important;
  color: var(--text, #f8fafc) !important;
}

[data-theme="dark"] .zalo-modal-header {
  border-bottom-color: rgba(0, 197, 223, 0.16) !important;
}

[data-theme="dark"] .zalo-modal-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .zalo-modal-subtitle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .student-info-summary-card {
  background: #071d42 !important;
  border-color: rgba(0, 197, 223, 0.16) !important;
}

[data-theme="dark"] .student-summary-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .student-summary-meta {
  color: #94a3b8 !important;
}

[data-theme="dark"] .exam-zalo-mode-card {
  background: #071d42 !important;
  border-color: rgba(0, 197, 223, 0.16) !important;
}

[data-theme="dark"] .exam-zalo-mode-card div[style*="color: #1e293b"] {
  color: #f8fafc !important;
}

[data-theme="dark"] .exam-zalo-mode-card div[style*="color: #64748b"] {
  color: #94a3b8 !important;
}

[data-theme="dark"] .exam-zalo-mode-card.active {
  background: rgba(0, 104, 255, 0.15) !important;
  border-color: #0068ff !important;
}

[data-theme="dark"] .exam-zalo-students-scrollbox,
[data-theme="dark"] #exam-zalo-students-list {
  background: #071d42 !important;
  border-color: rgba(0, 197, 223, 0.16) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] #exam-zalo-student-search {
  background: #051839 !important;
  border-color: rgba(0, 197, 223, 0.25) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #exam-zalo-custom-note {
  background: #051839 !important;
  border-color: rgba(0, 197, 223, 0.25) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #exam-zalo-progress-box {
  background: rgba(0, 104, 255, 0.15) !important;
  border-color: rgba(0, 104, 255, 0.35) !important;
}

[data-theme="dark"] #exam-zalo-progress-label {
  color: #93c5fd !important;
}

[data-theme="dark"] .zalo-student-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .zalo-student-item:hover {
  background: rgba(0, 197, 223, 0.08) !important;
}

[data-theme="dark"] .form-label-custom {
  color: #f8fafc !important;
}

[data-theme="dark"] #btn-studio-back {
  color: #f8fafc !important;
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
}

[data-theme="dark"] #modal-user-guide .modal-container,
[data-theme="dark"] #user-guide-content-pane {
  background: #0f172a !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #modal-user-guide .modal-header,
[data-theme="dark"] #user-guide-nav-list {
  background: #020617 !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] #user-guide-modal-title,
[data-theme="dark"] #user-guide-content-pane h3,
[data-theme="dark"] #user-guide-content-pane h4 {
  color: #f8fafc !important;
}

[data-theme="dark"] #user-guide-nav-list .user-guide-nav-btn:not(.active) span:last-child,
[data-theme="dark"] #user-guide-content-pane p {
  color: #cbd5e1 !important;
}

[data-theme="dark"] #user-guide-nav-list .user-guide-nav-btn.active {
  background: rgba(79, 70, 229, 0.25) !important;
  border-color: #6366f1 !important;
}

[data-theme="dark"] #user-guide-nav-list .user-guide-nav-btn.active span:last-child {
  color: #e0e7ff !important;
}

[data-theme="dark"] .ug-step-card,
[data-theme="dark"] #user-guide-content-pane figure {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .ug-step-card span:last-child,
[data-theme="dark"] #user-guide-content-pane figcaption {
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}



