﻿/* admin.css – Dedicated Styling for dMAT Admin Dashboard & Live Submissions */

html, body, .admin-body, .admin-main, .admin-layout, .container, #admin-dashboard-content, #admin-login-screen {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}

.admin-body {
  background: #000 !important;
  color: var(--t-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  border-bottom: 1px solid var(--border-lo);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Live Status Indicator */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.admin-main {
  flex: 1;
  padding: 32px 0 60px;
}

/* ── Hero Banner ── */
.admin-hero {
  margin-bottom: 28px;
}
.admin-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-last-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t-70);
  background: var(--bg-02);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-lo);
}
.admin-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.admin-hero p {
  font-size: 14px;
  color: var(--t-70);
  max-width: 820px;
  line-height: 1.6;
}

/* ── 5 KPI Summary Cards ── */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--r-lg);
  background: var(--bg-01);
  border: 1px solid var(--border-lo);
  transition: var(--ease);
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-gold { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }

.kpi-badge-top {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t-45);
  margin-bottom: 2px;
}
.kpi-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--t-100);
  line-height: 1.15;
}
.kpi-val-text {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub {
  font-size: 11px;
  color: var(--t-70);
  margin-top: 2px;
}

/* ── Toolbar ── */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-01);
  padding: 14px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-lo);
  margin-bottom: 20px;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-02);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 8px 14px;
  min-width: 280px;
  flex: 1;
  color: var(--t-45);
}
.toolbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--t-100);
  font-family: var(--font);
  font-size: 13px;
  width: 100%;
}
.toolbar-search input::placeholder {
  color: var(--t-45);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-select {
  background: var(--bg-02);
  border: 1px solid var(--border-md);
  color: var(--t-100);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-md);
  outline: none;
  cursor: pointer;
  transition: var(--ease);
}
.admin-select:focus {
  border-color: #10b981;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--bg-02);
  border: 1px solid var(--border-md);
  color: var(--t-100);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
}
.btn-admin-action:hover {
  background: var(--bg-03);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.btn-refresh {
  color: var(--t-70);
}
.btn-refresh:hover {
  color: var(--t-100);
}

/* ── Table Card ── */
.admin-table-card {
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--bg-01);
  border: 1px solid var(--border-lo);
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-lo);
  margin-bottom: 16px;
}
.table-card-head h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.table-sub {
  font-size: 12px;
  color: var(--t-45);
  margin-top: 2px;
}
.table-count-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--t-70);
  background: var(--bg-02);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-lo);
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 12px 16px;
  background: var(--bg-02);
  color: var(--t-45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-md);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-lo);
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Candidate cell */
.candidate-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-03);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #10b981;
  flex-shrink: 0;
}
.c-name {
  font-weight: 700;
  color: var(--t-100);
}

/* Tags and Pills */
.diff-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: inline-block;
}
.diff-tag.hard { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }
.diff-tag.medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.diff-tag.easy { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }

.score-badge {
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
}
.pill-green { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.pill-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.pill-red { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.time-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--t-100);
}
.time-cell svg { color: var(--t-45); }
.time-sub {
  font-size: 11px;
  color: var(--t-45);
}

.date-txt {
  font-size: 12px;
  color: var(--t-70);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: inline-block;
}

.admin-action-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-inspect {
  background: var(--bg-02);
  border: 1px solid var(--border-md);
  color: var(--t-100);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--ease);
}
.btn-inspect:hover {
  background: var(--bg-03);
  border-color: #10b981;
  color: #10b981;
}

.btn-del {
  background: var(--bg-02);
  border: 1px solid var(--border-lo);
  color: var(--t-45);
  font-size: 12px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--ease);
}
.btn-del:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Empty State */
.admin-empty-state {
  text-align: center;
  padding: 48px 24px;
}
.admin-empty-state svg {
  color: var(--t-45);
  margin-bottom: 12px;
}
.admin-empty-state h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.admin-empty-state p {
  font-size: 13px;
  color: var(--t-45);
  max-width: 440px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   ADMIN LOGIN SCREEN
═══════════════════════════════════════════════════ */
.admin-login-screen {
  position: fixed;
  inset: 0;
  background: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9000;
  animation: fadeIn .3s ease;
}
.admin-login-screen.hidden {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(16,185,129,0.08);
  animation: loginSlideUp .35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.login-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.login-site-name {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.login-admin-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(168,85,247,0.15);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.3);
}
.login-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -.025em;
}
.login-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-field label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.login-input {
  width: 100%;
  background: #131921;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}
.login-input::placeholder { color: rgba(255,255,255,0.3); }

.login-pwd-wrap {
  position: relative;
}
.login-pwd-wrap .login-input {
  padding-right: 44px;
}
.toggle-pwd-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s;
  padding: 4px;
  line-height: 1;
}
.toggle-pwd-btn:hover { opacity: 1; }

.login-error {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  margin-top: -4px;
}
.login-error.hidden { display: none; }

.login-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #10b981;
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 4px;
}
.login-submit-btn:hover {
  background: #0ea271;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}
.login-submit-btn:active {
  transform: translateY(0);
}

.login-back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color .2s;
}
.login-back-link:hover { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════════════
   LOGOUT BUTTON (in header)
═══════════════════════════════════════════════════ */
.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}
.admin-logout-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
}
.admin-logout-btn.hidden { display: none; }

/* c-date-mobile: only shown below the name on small screens */
.c-date-mobile {
  display: none;
  font-size: 10px;
  color: var(--t-45);
}

/* step-by-step in inspect modal */
.step-by-step {
  margin-top: 8px;
  font-size: 11px;
  color: var(--t-45);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS (≤900px)
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet / Small Phone (≤640px) ── */
@media (max-width: 640px) {
  /* Login card mobile */
  .login-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .login-title { font-size: 20px; }
  .login-subtitle { font-size: 11px; }

  /* Header */
  .admin-header .header-inner {
    padding: 0 10px;
  }
  .admin-badge { display: none; }
  .live-status-pill { display: none; }
  .live-text { display: none; }
  .logout-label { display: none; }

  /* Main layout */
  .admin-main {
    padding: 16px 0 48px;
  }
  .admin-hero {
    margin-bottom: 16px;
  }
  .admin-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin-hero h1 {
    font-size: 1.45rem;
    margin-bottom: 6px;
  }
  .admin-hero p {
    font-size: 12px;
  }

  /* KPI Grid: 2×3 on mobile (2 cols, 3 rows) */
  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .kpi-card {
    padding: 12px 10px;
    gap: 8px;
    border-radius: var(--r-md);
  }
  .kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .kpi-icon svg { width: 18px; height: 18px; }
  .kpi-label { font-size: 9px; }
  .kpi-val   { font-size: 17px; }
  .kpi-val-text { font-size: 13px; }
  .kpi-sub   { font-size: 10px; }

  /* Toolbar */
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .toolbar-search {
    width: 100%;
    min-width: 0;
  }
  .toolbar-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .admin-select {
    font-size: 11px;
    padding: 7px 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .btn-admin-action {
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
  }

  /* Table card */
  .admin-table-card {
    padding: 12px 8px;
    border-radius: var(--r-md);
  }
  .table-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .table-card-head h3 { font-size: 15px; }

  /* Table: hide Test Set + Date columns on mobile, keep # / Name / Score / Time / Actions */
  .c-date-mobile { display: block; }

  /* Hide Test Set (col 3) - too wide for mobile */
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) { display: none; }

  /* Hide Date & Time (col 6) */
  .admin-table th:nth-child(6),
  .admin-table td:nth-child(6) { display: none; }

  /* Compact table wrapper */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Column sizing */
  .admin-table th:nth-child(1),
  .admin-table td:nth-child(1) { width: 24px; padding: 10px 4px 10px 8px; }

  .admin-table th:nth-child(2),
  .admin-table td:nth-child(2) { max-width: 110px; }

  /* Candidate name: truncate if very long */
  .admin-table td:nth-child(2) strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 105px;
    font-size: 12px;
  }

  /* Score: prevent wrapping */
  .admin-table td:nth-child(4) { white-space: nowrap; }
  .admin-table td:nth-child(4) strong { white-space: nowrap; }

  /* Time Taken: compact */
  .admin-table td:nth-child(5) { white-space: nowrap; font-size: 11px; }

  /* Actions: row layout */
  .admin-action-btns { flex-direction: row; gap: 4px; }

  .admin-table th { font-size: 9px; padding: 10px 6px; white-space: nowrap; }
  .admin-table td { font-size: 12px; padding: 10px 6px; }

  .c-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .c-name { font-size: 12px; }

  .btn-inspect { font-size: 10px; padding: 5px 8px; white-space: nowrap; }
  .btn-del     { font-size: 11px; padding: 5px 7px; }

  .score-badge { font-size: 11px; padding: 2px 7px; }
  .time-cell   { font-size: 11px; gap: 4px; }
  .time-sub    { font-size: 10px; }
  .rank-num    { font-size: 11px; }
}

/* ─── Real-Time Live Toast Notification ─── */
.admin-live-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0f172a;
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 380px;
}
@media (max-width: 640px) {
  .admin-live-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
.admin-live-toast.toast-hide {
  opacity: 0;
  transform: translateY(20px);
}
@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.4s infinite ease-in-out;
  flex-shrink: 0;
}
.toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toast-body strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.toast-body span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}



/* Test Set Badge matching figure & math page */
.badge-tag-diff {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-lo);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--t-80);
  white-space: nowrap;
}

.toggle-pwd-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.toggle-pwd-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
