﻿/* ============================================================
   ATHENA TRACK — Stylesheet
   Fuentes: Sora (títulos) + DM Sans (UI)
   ============================================================ */

:root {
  --color-bg:          #F8F8F6;
  --color-surface:     #FFFFFF;
  --color-text:        #141414;
  --color-text-muted:  #6B6B6B;
  --color-accent:      #1A1A2E;
  --color-interactive: #2563EB;
  --color-border:      #E4E4E7;
  --color-danger:      #DC2626;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.10);
  --nav-height: 58px;
}

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

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, .brand {
  font-family: 'Sora', system-ui, sans-serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Brand */
.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -.3px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand span { color: #60A5FA; }

/* Separador vertical */
.navbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Nombre del grupo activo */
.navbar-group-name {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  flex-shrink: 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-spacer { flex: 1; }

/* ── Chip de usuario ── */
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 100px;
  padding: 4px 12px 4px 5px;
  flex-shrink: 0;
}
.nav-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.nav-user-name {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.80);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Botones de acción de navbar ── */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.nav-btn svg { flex-shrink: 0; }

.nav-btn-ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
  color: rgba(255,255,255,.75);
}
.nav-btn-ghost:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

.nav-btn-blue {
  background: rgba(37,99,235,.18);
  border-color: rgba(37,99,235,.38);
  color: #93C5FD;
}
.nav-btn-blue:hover {
  background: rgba(37,99,235,.30);
  color: #BFDBFE;
  border-color: rgba(37,99,235,.55);
}

/* Logout */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(220,38,38,.13);
  border: 1px solid rgba(220,38,38,.30);
  color: #FCA5A5;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-logout:hover {
  background: rgba(220,38,38,.26);
  color: #FEE2E2;
  border-color: rgba(220,38,38,.50);
}

/* ============================================================
   PÁGINA DE LOGIN
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 24px;
}

.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo .brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -.5px;
  display: block;
}

.login-logo .brand-name span { color: var(--color-interactive); }

.login-logo .brand-sub {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}

.form-group input::placeholder { color: var(--color-text-muted); }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--color-interactive);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, transform .08s, box-shadow .15s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.btn-primary:active { transform: translateY(1px); }

.btn-primary:disabled {
  background: #93C5FD;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--color-danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 16px;
  display: none;
}

.login-error.visible { display: block; }

/* ============================================================
   LAYOUT DEL DASHBOARD
   ============================================================ */
.dashboard-page { padding-top: var(--nav-height); }

.toolbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

/* Selector de grupos (admin) */
.group-select-wrapper {
  display: none;
  align-items: center;
  gap: 8px;
}

.group-select-wrapper.visible { display: flex; }

.group-select-wrapper label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.group-select-wrapper select {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  padding: 6px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  cursor: pointer;
}

.group-select-wrapper select:focus {
  border-color: var(--color-interactive);
}

.toolbar-sep {
  width: 1px;
  height: 28px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Tabs de parciales */
.parcial-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-interactive);
  border-color: var(--color-interactive);
  color: #fff;
  font-weight: 600;
}

.tab-badge {
  font-size: .7rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
  background: rgba(255,255,255,.20);
  color: inherit;
  letter-spacing: .2px;
}

.tab-btn:not(.active) .tab-badge-enviado {
  background: #DCFCE7;
  color: #15803D;
}

.tab-btn.active .tab-badge-enviado {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* Selector de semestre */
.semestre-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.semestre-wrapper label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.semestre-wrapper select {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  padding: 6px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  cursor: pointer;
}

.semestre-wrapper select:focus { border-color: var(--color-interactive); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* Botón Guardar (manual) */
.btn-save {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 20px;
  background: transparent;
  color: var(--color-interactive);
  border: 1.5px solid var(--color-interactive);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .08s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-save:hover {
  background: var(--color-interactive);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

.btn-save:active { transform: translateY(1px); }

.btn-save:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-save.saved {
  color: #16A34A;
  border-color: #16A34A;
  background: transparent;
}

.btn-save.saved:hover {
  background: #16A34A;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,163,74,.25);
}

.btn-save.error {
  color: var(--color-danger);
  border-color: var(--color-danger);
  background: transparent;
}

html.dark .btn-save.saved  { color: #4ADE80; border-color: #4ADE80; }
html.dark .btn-save.saved:hover { background: #4ADE80; color: #0A2018; }
html.dark .btn-save.error  { color: #F87171; border-color: #F87171; }

/* Wrapper del botón Enviar — necesario para tooltip en estado deshabilitado */
.btn-enviar-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

/* Tooltip que aparece al hover cuando el botón está bloqueado */
.btn-enviar-wrap[data-blocked="true"]::after {
  content: 'Guarda los cambios antes de enviar';
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1A1A2E;
  color: #EDEDF0;
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #2C2C40;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 200;
}

.btn-enviar-wrap[data-blocked="true"]:hover::after {
  opacity: 1;
}

/* Botón Enviar reporte */
.btn-enviar {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  padding: 9px 20px;
  background: var(--color-interactive);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .08s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-enviar:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37,99,235,.30);
}

.btn-enviar:active { transform: translateY(1px); }

.btn-enviar:disabled {
  background: #93C5FD;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Banner de parcial enviado */
.enviado-banner {
  display: none;
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 10px 24px;
  font-size: .875rem;
  font-weight: 500;
  align-items: center;
  gap: 8px;
}

.enviado-banner.visible { display: flex; }

/* Status chips — último guardado y enviado por grupo */
.grupo-status-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.4;
  border: 1px solid transparent;
}
.status-chip-guardado  { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.status-chip-enviado   { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.status-chip-pendiente { background: #FFF7ED; color: #9A3412; border-color: #FED7AA; }

/* Warnings dentro del modal */
.update-warning,
.missing-warning {
  display: none;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: .875rem;
  line-height: 1.5;
}

.update-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.missing-warning {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
}

/* ============================================================
   ZONA PRINCIPAL — TABLA
   ============================================================ */
.main-content {
  padding: 14px 20px 16px;
}

.table-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: auto;
  /* Scrollbar siempre visible al fondo de la pantalla, no del contenido */
  max-height: calc(100vh - var(--nav-height) - 56px - 56px);
}

table.grading-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1280px;
}

/* Encabezados sticky */
table.grading-table thead tr {
  background: var(--color-accent);
  color: #fff;
}

table.grading-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 9px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  background: var(--color-accent);
}

table.grading-table thead th:first-child { padding-left: 14px; }
table.grading-table thead th:last-child  { padding-right: 14px; }

/* Filas alternadas */
table.grading-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background .1s;
}

table.grading-table tbody tr:last-child { border-bottom: none; }

table.grading-table tbody tr:nth-child(odd)  { background: var(--color-surface); }
table.grading-table tbody tr:nth-child(even) { background: #FAFAFA; }

table.grading-table tbody tr:hover { background: #F0F0FF; }

table.grading-table tbody td {
  padding: 6px 8px;
  font-size: .82rem;
  vertical-align: middle;
}

table.grading-table tbody td:first-child { padding-left: 14px; }
table.grading-table tbody td:last-child  { padding-right: 14px; }

/* Anchos de columnas — compactos para caber en 1440px+ sin scroll horizontal */
.col-num      { width: 36px;  text-align: center; color: var(--color-text-muted); font-size: .76rem; }
.col-mat      { width: 100px; font-size: .76rem; font-family: 'DM Sans', monospace; }
.col-nombre   { min-width: 172px; font-weight: 500; }
.col-beca     { width: 58px;  text-align: center; }
.col-prog     { width: 50px;  text-align: center; }
.col-com      { width: 76px;  text-align: center; }
.col-bloque   { width: 138px; }
.col-coment-s { min-width: 125px; }   /* comentario por bloque */
.col-comentario { min-width: 140px; } /* legacy */

.beca-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  background: #EFF6FF;
  color: var(--color-interactive);
  padding: 2px 8px;
  border-radius: 20px;
}

.comunidad-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-text-muted);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/* ============================================================
   DROPDOWNS DE SEMÁFORO
   ============================================================ */
.semaforo-select {
  width: 100%;
  padding: 5px 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .76rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: auto;
  background-color: #F4F4F5;
  color: #6B6B6B;
}

.semaforo-select:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.semaforo-select:disabled {
  opacity: .75;
  cursor: not-allowed;
}

/* ============================================================
   CAMPO DE COMENTARIO INLINE
   ============================================================ */
.comentario-input {
  width: 100%;
  padding: 5px 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--color-text);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: border-color .15s, background .15s, box-shadow .15s;
  outline: none;
  resize: none;
  height: 32px;
  overflow: hidden;
}

.comentario-input::placeholder { color: #C0C0C8; }

.comentario-input:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.comentario-input:focus {
  background: #fff;
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
  height: 60px;
  overflow: auto;
}

.comentario-input:disabled {
  cursor: not-allowed;
  opacity: .7;
}

/* ── Dot indicator en celda de comentario ── */
td.col-coment-s {
  position: relative;
  min-width: 160px;   /* más espacio */
}

/* Dot ámbar — esquina superior derecha del td, sin tocar el textarea */
td.coment-pending::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
  z-index: 2;
  pointer-events: none;
  animation: dot-in .15s ease;
}

@keyframes dot-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Dot rojo — mismo posicionamiento esquina superior derecha */
td.coment-error-cell::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.18);
  z-index: 2;
  pointer-events: none;
}

/* Textarea: sin padding extra — el texto queda en su posición normal */
td.coment-pending .comentario-input,
td.coment-error-cell .comentario-input {
  padding-left: 7px;  /* igual que el default */
  min-height: 42px;
}

/* ── Error al intentar guardar (campo rojo) ── */
.comentario-input.coment-error {
  border: 1.5px solid #EF4444 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.10);
  padding-left: 18px;
  animation: shake .3s ease;
}

.comentario-input.coment-error::placeholder { color: #EF4444; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ── Wrapper + badge del botón Guardar ── */
.btn-save-wrap {
  position: relative;
  flex-shrink: 0;
}

.save-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #F59E0B;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  border: 2px solid var(--color-surface);
  line-height: 1;
  animation: badge-pop .2s cubic-bezier(.34,1.56,.64,1);
}

.save-badge.hidden { display: none; }

@keyframes badge-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Dark mode ── */
html.dark td.coment-pending::before    { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
html.dark td.coment-error-cell::before { background: #F87171; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }

html.dark .comentario-input.coment-error {
  border-color: #EF4444 !important;
  background: #1A0505 !important;
}

html.dark .comentario-input.coment-error::placeholder { color: #F87171; }

/* ============================================================
   MODO LECTURA (parcial enviado)
   ============================================================ */
.read-only-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.02);
  z-index: 5;
  pointer-events: none;
}

.table-wrapper.is-readonly .read-only-overlay { display: block; }

/* ============================================================
   MODAL DE ENVÍO
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: modal-in .2s ease;
}

@keyframes modal-in {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)     scale(1);   opacity: 1; }
}

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

.modal-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: background .12s, color .12s;
}

.modal-close-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal-body { padding: 22px 24px; }

.modal-info-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .875rem;
}

.modal-info-box .label {
  font-size: .75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
  display: block;
  margin-bottom: 4px;
}

.modal-info-box .value {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
}

/* Drop zone para PDF */
.drop-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--color-interactive);
  background: #EFF6FF;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone-icon { font-size: 2rem; margin-bottom: 8px; }

.drop-zone-text {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.drop-zone-text strong {
  color: var(--color-interactive);
  font-weight: 600;
}

.file-selected-info {
  display: none;
  align-items: center;
  gap: 8px;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: .875rem;
  color: #15803D;
  font-weight: 500;
}

.file-selected-info.visible { display: flex; }

.file-remove-btn {
  background: none;
  border: none;
  color: #15803D;
  cursor: pointer;
  font-size: .9rem;
  margin-left: auto;
  padding: 2px 4px;
  opacity: .7;
}

.file-remove-btn:hover { opacity: 1; }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--color-border);
}

.btn-cancel {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  padding: 10px 20px;
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.btn-cancel:hover {
  background: var(--color-bg);
  border-color: #C0C0C8;
}

.btn-confirm {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--color-interactive);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.btn-confirm:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37,99,235,.30);
}

.btn-confirm:disabled {
  background: #93C5FD;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spinner de carga */
.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.spinner.visible { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in .2s ease;
  max-width: 340px;
}

@keyframes toast-in {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes toast-out {
  to { transform: translateY(10px); opacity: 0; }
}

.toast.toast-success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #15803D;
}

.toast.toast-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--color-danger);
}

.toast.toast-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}

.toast-icon { font-size: 1.05rem; flex-shrink: 0; }

/* ============================================================
   ESTADO DE CARGA INICIAL
   ============================================================ */
.loading-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-muted);
}

.loading-state .spinner-large {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-interactive);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.hidden { display: none !important; }

.text-muted {
  color: var(--color-text-muted);
  font-size: .82rem;
}

/* Ocultar columna PROG. en grupos de tipo prepa */
table.grading-table.hide-prog .col-prog { display: none; }

/* Scrollbar personalizado */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #C0C0C8; }

/* ============================================================
   PILL TOGGLE DE TEMA — compartido navbar + login
   ============================================================ */

/* Iconos sol y luna dentro del pill */
.tt-icon {
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  flex-shrink: 0;
  transition: opacity .25s;
  display: block;
  position: relative;
  z-index: 0;
}

/* Thumb deslizante */
.tt-thumb {
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 5px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06);
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  transition: left .28s cubic-bezier(.4,0,.2,1);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   TOGGLE EN NAVBAR
   ============================================================ */
.btn-theme-toggle {
  position: relative;
  width: 52px;
  height: 27px;
  padding: 0 5px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .25s, border-color .25s;
}

.btn-theme-toggle:hover {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.38);
}

/* Luz: luna izq. (apagada), sol der. (encendido) → thumb izquierda */
.btn-theme-toggle .tt-moon { opacity: .38; }
.btn-theme-toggle .tt-sun  { opacity: .88; }

/* Dark: thumb va a la derecha */
html.dark .btn-theme-toggle .tt-moon { opacity: .92; }
html.dark .btn-theme-toggle .tt-sun  { opacity: .35; }
html.dark .btn-theme-toggle .tt-thumb { left: 28px; }

html.dark .btn-theme-toggle {
  background: rgba(37,99,235,.30);
  border-color: rgba(37,99,235,.52);
}

/* ============================================================
   TOGGLE EN LOGIN
   ============================================================ */
.login-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 58px;
  height: 30px;
  padding: 0 5px;
  border-radius: 15px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: background .25s, border-color .25s, box-shadow .25s;
}

.login-theme-toggle:hover {
  border-color: var(--color-interactive);
  box-shadow: 0 2px 12px rgba(37,99,235,.20);
}

/* Thumb del login: mismo desplazamiento adaptado al ancho 58px */
.login-theme-toggle .tt-thumb {
  width: 22px;
  height: 22px;
}

/* Luz */
.login-theme-toggle .tt-moon { opacity: .38; }
.login-theme-toggle .tt-sun  { opacity: .80; color: #F59E0B; }

/* Dark */
html.dark .login-theme-toggle .tt-moon { opacity: .90; color: #60A5FA; }
html.dark .login-theme-toggle .tt-sun  { opacity: .35; }
html.dark .login-theme-toggle .tt-thumb { left: 31px; }

html.dark .login-theme-toggle {
  border-color: #2C2C40;
  background: #1C1C27;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ============================================================
   DARK MODE — oscuro real, navbar mantiene identidad navy
   ============================================================ */
html.dark {
  --color-bg:          #111118;
  --color-surface:     #1C1C27;
  --color-text:        #EDEDF0;
  --color-text-muted:  #8A8AA8;
  --color-accent:      #1A1A2E;   /* navbar: identidad original */
  --color-interactive: #3B82F6;
  --color-border:      #2C2C40;
  --color-danger:      #F87171;
}

/* Tabla — filas alternas y hover */
html.dark table.grading-table tbody tr:nth-child(odd)  { background: #1C1C27; }
html.dark table.grading-table tbody tr:nth-child(even) { background: #202030; }
html.dark table.grading-table tbody tr:hover           { background: #26263A; }

/* Badges */
html.dark .beca-badge      { background: #1E1E40; color: #60A5FA; }
html.dark .comunidad-badge { background: #1A1A2C; border-color: #2C2C40; color: #9A9AB8; }

/* Drop zone hover en dark */
html.dark .drop-zone:hover,
html.dark .drop-zone.dragover { background: #1A1A38; border-color: var(--color-interactive); }

/* Banner de enviado */
html.dark .enviado-banner       { background: #0C1628; border-color: #1A3050; color: #93C5FD; }

/* Warnings modal */
html.dark .update-warning       { background: #1A1400; border-color: #3A2E00; color: #FCD34D; }
html.dark .missing-warning      { background: #1C0E00; border-color: #431407; color: #FDBA74; }

/* Estados de éxito (verde) */
html.dark .file-selected-info   { background: #052E16; border-color: #166534; color: #4ADE80; }
html.dark .file-remove-btn      { color: #4ADE80; }
html.dark .tab-btn:not(.active) .tab-badge-enviado { background: #052E16; color: #4ADE80; }

/* Toasts dark */
html.dark .toast-success { background: #052E16; border-color: #166534; color: #4ADE80; }
html.dark .toast-error   { background: #450A0A; border-color: #7F1D1D; color: #FCA5A5; }
html.dark .toast-info    { background: #0C1A3A; border-color: #1E3A6E; color: #93C5FD; }

/* Login dark */
html.dark .login-card { border-color: #2C2C40; background: #18182A; }
html.dark .login-logo .brand-name { color: var(--color-text); }
html.dark .login-error { background: #450A0A; border-color: #7F1D1D; color: #FCA5A5; }
html.dark .form-group input {
  background: #15151F;
  border-color: #2C2C40;
  color: var(--color-text);
}
html.dark .form-group input:focus { background: #1A1A28; }

/* Modal dark */
html.dark .modal-overlay { background: rgba(0,0,0,.65); }

/* Scrollbar dark */
html.dark ::-webkit-scrollbar-thumb       { background: #3A3A52; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #4C4C68; }

/* ── Semáforo dropdowns ── */
html.dark .semaforo-select {
  background-color: #22222E;
  color: #9090B0;
  border: 1.5px solid #2C2C40;
}

html.dark .semaforo-select:focus {
  border-color: rgba(37,99,235,.60);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

html.dark .semaforo-select:disabled {
  background-color: #1C1C28;
  color: #606080;
  border-color: #252535;
  opacity: 1;
}

/* ── Botón "Actualizar reporte" (disabled durante envío) ── */
html.dark .btn-enviar:disabled {
  background: #1E1E38;
  color: #3B82F6;
  border: 1px solid #2A2A50;
  cursor: not-allowed;
  opacity: 1;
}

/* ── Campo de comentario ── */
html.dark .comentario-input {
  color: var(--color-text);
}

html.dark .comentario-input::placeholder { color: #50506A; }

html.dark .comentario-input:hover {
  background: #20202C;
  border-color: #383850;
}

html.dark .comentario-input:focus {
  background: #1C1C2A;
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

html.dark .comentario-input:disabled { opacity: .5; }

/* ── Selects nativos (grupo + semestre) ── */
html.dark .group-select-wrapper select,
html.dark .semestre-wrapper select {
  color-scheme: dark;
  background: #22222E;
  border-color: #2C2C40;
  color: var(--color-text);
}

/* ── Tab buttons ── */
html.dark .tab-btn {
  border-color: #2C2C40;
  color: #7878A0;
}

html.dark .tab-btn:hover {
  background: #20202C;
  color: var(--color-text);
}

/* ── Beca badge ── */
html.dark .beca-badge { background: #1E1E40; color: #60A5FA; }

/* ── Toolbar separator ── */
html.dark .toolbar-sep { background: #2C2C40; }

/* ── Status chips ── */
html.dark .status-chip-guardado  { background: rgba(34,197,94,.12);  color: #4ADE80; border-color: rgba(34,197,94,.35); }
html.dark .status-chip-enviado   { background: rgba(59,130,246,.12); color: #60A5FA; border-color: rgba(59,130,246,.35); }
html.dark .status-chip-pendiente { background: rgba(234,88,12,.12);  color: #FB923C; border-color: rgba(234,88,12,.35); }

/* ── Drop zone ── */
html.dark .drop-zone {
  border-color: #2C2C40;
  background: transparent;
}

/* ── Modal info box ── */
html.dark .modal-info-box {
  background: #15151F;
  border-color: #2C2C40;
}

/* ── Botón cancelar modal ── */
html.dark .btn-cancel {
  color: var(--color-text);
  border-color: #2C2C40;
}
html.dark .btn-cancel:hover {
  background: #20202C;
  border-color: #404058;
}

/* ============================================================
   COLUMNA Y BOTÓN DE WARNING (solo visible para admin)
   ============================================================ */

/* Por defecto la columna está oculta — se muestra con .show-warn */
table.grading-table .col-warn { display: none; }
table.grading-table.show-warn .col-warn { display: table-cell; }

.col-warn {
  width: 96px;
  text-align: center;
  white-space: nowrap;
}

/* Botón ⚠ Warning dentro de la fila */
.btn-warn-row {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  background: #FFF7ED;
  color: #C2410C;
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .14s, border-color .14s, box-shadow .14s, transform .08s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  letter-spacing: .1px;
}

.btn-warn-row:hover {
  background: #FFEDD5;
  border-color: #FB923C;
  box-shadow: 0 2px 8px rgba(194,65,12,.18);
}

.btn-warn-row:active {
  transform: translateY(1px);
}

/* Dark mode */
html.dark .btn-warn-row {
  background: #1C0D00;
  color: #FB923C;
  border-color: #431407;
}

html.dark .btn-warn-row:hover {
  background: #2A1200;
  border-color: #C2410C;
  box-shadow: 0 2px 8px rgba(251,146,60,.18);
}

/* ============================================================
   MODAL DE WARNING
   ============================================================ */
.warn-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 210;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.warn-modal-overlay.open { display: flex; }

.warn-modal-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  animation: modal-in .2s ease;
}

/* Header naranja oscuro del modal de warning */
.warn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  background: #431407;
  border-bottom: 1px solid #7C2D12;
}

.warn-modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warn-modal-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.warn-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FED7AA;
}

.warn-modal-subtitle {
  font-size: .78rem;
  color: #FDBA74;
  margin-top: 1px;
  font-family: 'DM Sans', sans-serif;
}

.warn-modal-close {
  background: none;
  border: none;
  color: #FCA5A5;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: background .12s;
}

.warn-modal-close:hover { background: rgba(255,255,255,.10); }

.warn-modal-body { padding: 20px 24px; }

/* Caja de info del alumno */
.warn-alumno-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.warn-alumno-nombre {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
}

.warn-alumno-mat {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-family: 'DM Sans', monospace;
}

/* Historial de warnings previos */
.warn-history-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.warn-history-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  min-height: 26px;
}

.warn-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--color-text-muted);
}

.warn-history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.warn-badge-1 { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.warn-badge-2 { background: #FFEDD5; color: #9A3412; border: 1px solid #FED7AA; }
.warn-badge-3 { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

.warn-history-status-ok  { color: #16A34A; }
.warn-history-status-err { color: #DC2626; }

.warn-history-empty {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Selector de nivel */
.warn-nivel-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.warn-nivel-options {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.warn-nivel-option {
  flex: 1;
  position: relative;
}

.warn-nivel-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.warn-nivel-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .14s, background .14s, box-shadow .14s;
  user-select: none;
}

.warn-nivel-option label:hover {
  border-color: #FB923C;
  background: #FFF7ED;
}

.warn-nivel-option input[type="radio"]:checked + label {
  border-color: #EA580C;
  background: #FFEDD5;
  box-shadow: 0 0 0 3px rgba(234,88,12,.14);
}

.warn-nivel-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #C2410C;
}

.warn-nivel-txt {
  font-size: .72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.warn-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--color-border);
}

/* Botón confirmar warning — estilo naranja */
.btn-warn-confirm {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 24px;
  background: #EA580C;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.btn-warn-confirm:hover {
  background: #C2410C;
  box-shadow: 0 4px 12px rgba(234,88,12,.32);
}

.btn-warn-confirm:disabled {
  background: #FDBA74;
  cursor: not-allowed;
  box-shadow: none;
}

/* Dark mode — modal de warning */
html.dark .warn-modal-header       { background: #3A0C02; border-color: #5C1A09; }
html.dark .warn-modal-title        { color: #FDBA74; }
html.dark .warn-modal-subtitle     { color: #FB923C; }
html.dark .warn-alumno-box         { background: #15151F; border-color: #2C2C40; }
html.dark .warn-nivel-option label { border-color: #2C2C40; }
html.dark .warn-nivel-option label:hover { background: #1C0D00; border-color: #C2410C; }
html.dark .warn-nivel-option input:checked + label { background: #1C0D00; border-color: #EA580C; }
html.dark .warn-badge-1 { background: #1C1200; color: #FCD34D; border-color: #3A2800; }
html.dark .warn-badge-2 { background: #1C0800; color: #FDBA74; border-color: #431407; }
html.dark .warn-badge-3 { background: #1A0505; color: #FCA5A5; border-color: #450A0A; }
html.dark .warn-history-status-ok  { color: #4ADE80; }
html.dark .warn-history-status-err { color: #F87171; }
html.dark .btn-warn-confirm        { background: #C2410C; }
html.dark .btn-warn-confirm:hover  { background: #9A3412; }
