@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}

input,
select,
textarea,
button {
  font-family: "Inter", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── LAYOUT ── */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 186px;
  background: var(--s1);
  border-right: 1px solid var(--border);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.brand-section {
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--b2);
  margin-bottom: 10px;
}

.brand-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--orange);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  color: var(--t2);
  border-radius: 7px;
  font-weight: 500;
  font-size: 0.78rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--s2);
}

.nav-links li.active a {
  color: var(--teal);
  background: rgba(0, 201, 167, 0.1);
  border-color: rgba(0, 201, 167, 0.2);
  font-weight: 600;
}

.nav-links a svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-top: 1px solid var(--b2);
  margin-top: auto;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.15);
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.profile-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.76rem;
}

.profile-role {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: capitalize;
}

.profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── MAIN CONTENT ── */
.main-wrapper {
  flex-grow: 1;
  margin-left: 186px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-navbar {
  height: 40px;
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--t2);
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--s2);
  color: var(--teal);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.content-container {
  padding: 14px;
  flex-grow: 1;
}

/* Compact list tables — tightens the legacy inline cell padding used across
   the list views so every table reads denser without editing each view. */
.content-container table th,
.content-container table td {
  padding: 9px 14px !important;
  font-size: 0.82rem;
}

/* ── STAT CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--s1);
  border: 1px solid var(--b2);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--teal);
  opacity: 0;
  transition: 0.2s;
}

.stat-card:hover {
  border-color: rgba(0, 201, 167, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 201, 167, 0.08);
}

.stat-card:hover::before {
  opacity: 1;
}

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

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--s2);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── FORMS ── */
.form-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 7px 10px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  transition: 0.2s;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #0a1628;
}

.btn-primary:hover {
  background: var(--teal2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.3);
}

.btn-secondary {
  background: var(--s2);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--s3);
  border-color: var(--teal);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* ── AUTH ── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Entrance animation and polished interactions for auth views */
@keyframes authEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-container {
  animation: authEnter 440ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  will-change: transform, opacity;
}

.login-btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
}
.login-btn:active {
  transform: translateY(-1px) scale(0.995);
}

/* input icon reacts on focus-within without changing theme colors */
.input-wrapper {
  position: relative;
}
.input-wrapper .input-icon {
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}
.input-wrapper:focus-within .input-icon {
  color: var(--teal);
  transform: translateY(-50%) scale(1.03);
  opacity: 0.95;
}

/* Responsive tweaks for small screens to ensure nice rendering */
@media (max-width: 520px) {
  .auth-container {
    padding: 20px;
    border-radius: 12px;
    max-width: calc(100% - 32px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }
  .auth-logo {
    font-size: 1.6rem;
  }
  .auth-subtitle {
    font-size: 0.85rem;
  }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .auth-container,
  .login-btn,
  .input-wrapper .input-icon {
    animation: none !important;
    transition: none !important;
  }
}

.auth-header {
  text-align: center;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.auth-logo span {
  color: var(--orange);
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--t2);
}

.auth-error-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--red);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 500;
  text-align: center;
}

.auth-success-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 500;
  text-align: center;
}

.auth-footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--t2);
}

.auth-footer a {
  color: var(--teal);
  font-weight: 600;
}

/* ── EXAM LIST ── */
.exam-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.exam-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: 0.2s;
}

.exam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 201, 167, 0.08);
  border-color: rgba(0, 201, 167, 0.3);
}

.exam-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-jamb,
.badge-mock {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
}

.badge-waec {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
}

.badge-neco {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
}

.exam-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.exam-card-desc {
  font-size: 0.7rem;
  color: var(--t2);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.exam-meta-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--b2);
  font-size: 0.7rem;
  color: var(--muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── EXAM TAKE ── */
.exam-take-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.exam-header {
  height: 58px;
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.exam-header-title {
  font-weight: 700;
  font-size: 1rem;
}

.exam-timer-wrapper {
  background: var(--s2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
}

.exam-timer-wrapper.warning {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--red);
  color: var(--red);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.03);
  }
}

.exam-body {
  flex-grow: 1;
  display: flex;
}

.exam-left-panel {
  width: 270px;
  background: var(--s1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
}

.subject-tabs {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--b2);
  background: var(--s2);
}

.subject-tab {
  padding: 11px 18px;
  background: none;
  border: none;
  color: var(--t2);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
  border-bottom: 2px solid transparent;
}

.subject-tab:hover {
  color: var(--text);
  background: var(--s3);
}

.subject-tab.active {
  color: var(--teal);
  background: var(--s1);
  border-bottom-color: var(--teal);
}

.grid-scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  padding: 18px;
}

.question-status-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  justify-content: space-between;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend-unanswered {
  background: var(--muted);
}

.legend-answered {
  background: var(--yellow);
}

.legend-flagged {
  background: var(--red);
}

.question-numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.q-btn {
  aspect-ratio: 1;
  background: var(--s2);
  border: 1px solid var(--border);
  color: var(--t2);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.q-btn:hover {
  border-color: var(--teal);
  color: var(--text);
}

.q-btn.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
  color: var(--text);
}

.q-btn.answered {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a1628;
}

.q-btn.flagged {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.exam-main-panel {
  flex-grow: 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.question-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--b2);
  padding-bottom: 14px;
}

.q-num-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
}

.difficulty-badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--s2);
  color: var(--t2);
}

.question-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-button {
  width: 100%;
  padding: 14px 18px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.2s;
}

.option-button:hover {
  border-color: var(--teal);
  background: var(--s3);
}

.option-button.selected {
  background: rgba(0, 201, 167, 0.08);
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 201, 167, 0.2);
}

.option-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--s3);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.option-button.selected .option-letter {
  background: var(--teal);
  color: #0a1628;
  border-color: var(--teal);
}

.exam-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── CONTENT HUB ── */
.content-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 7px;
}

.content-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: 0.2s;
}

.content-card:hover {
  border-color: rgba(0, 201, 167, 0.35);
  box-shadow: 0 3px 12px rgba(0, 201, 167, 0.07);
}

.content-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.content-type-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.type-pdf {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.type-video {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.type-textbook {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.type-qset {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
}

.content-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 4px;
  margin-top: 2px;
}

/* ── MR BRIQ CHAT ── */
.briq-ai-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
}

.briq-chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 201, 167, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  position: relative;
}

.briq-chat-btn:hover {
  transform: scale(1.07);
}

.briq-chat-btn svg {
  width: 24px;
  height: 24px;
  stroke: #0a1628;
  stroke-width: 2;
  fill: none;
}

.notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
}

.briq-chat-box {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 340px;
  height: 460px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.briq-chat-box.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.briq-chat-header {
  background: var(--s2);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.briq-header-title {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.briq-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0a1628;
  font-size: 0.75rem;
}

.close-chat-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}

.briq-messages-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.message-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.45;
}

.message-bot {
  background: var(--s2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--border);
}

.message-user {
  background: var(--teal);
  color: #0a1628;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.quick-replies {
  padding: 7px 14px;
  border-top: 1px solid var(--b2);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--s2);
}

.quick-reply-chip {
  background: var(--s3);
  border: 1px solid var(--border);
  color: var(--t2);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.quick-reply-chip:hover {
  color: var(--teal);
  border-color: rgba(0, 201, 167, 0.3);
}

.chat-input-bar {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 7px;
  background: var(--s2);
}

.chat-input {
  flex-grow: 1;
  padding: 7px 11px;
  background: var(--s3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  outline: none;
  font-size: 0.83rem;
}

.chat-input:focus {
  border-color: var(--teal);
}

.chat-send-btn {
  background: var(--teal);
  color: #0a1628;
  border: none;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.chat-send-btn:hover {
  background: var(--teal2);
}

/* ── TOASTS ── */
.toast-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--s1);
  border: 1px solid var(--border);
  padding: 13px 20px;
  border-radius: 11px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(110px);
  opacity: 0;
  transition: all 0.3s;
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 340px;
}

.toast-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--green);
}

.toast-error {
  border-left: 4px solid var(--red);
}

.toast-info {
  border-left: 4px solid var(--blue);
}

/* ── CANDIDATE MONITOR CARDS ── */
.candidate-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.candidate-card.paused {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.04);
}

.candidate-card.offline {
  border-color: var(--red);
  opacity: 0.85;
}

.candidate-card.submitted {
  border-color: var(--blue);
  opacity: 0.65;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--s2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  transition: width 0.5s ease;
  border-radius: 3px;
}

.btn-group {
  display: flex;
  gap: 7px;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-group button {
  flex: 1;
  padding: 7px 6px;
  font-size: 0.72rem;
  min-width: 60px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-186px);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
  }

  .exam-body {
    flex-direction: column;
  }

  .exam-left-panel {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }

  .question-numbers-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .content-container {
    padding: 16px;
  }
}
