/* frontend/student-jee-test/nta.css */
.nta-header {
  background: #e87722;
  color: #fff;
}
.nta-header-info {
  background: #c0392b;
}
.nta-subject-bar {
  background: #1a237e;
}
.nta-subject-tab {
  padding: 6px 18px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  color: #fff;
  background: transparent;
  letter-spacing: 0.5px;
  border-radius: 0;
}
.nta-subject-tab.active {
  background: #fff;
  color: #1a237e;
}
.nta-question-area {
  border: 1px solid #bbb;
  background: #fff;
  min-height: 400px;
  overflow: hidden;
}
.nta-option-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}
.nta-option-row .nta-opt-label {
  font-weight: 700;
  min-width: 22px;
}
.nta-bubble-row {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}
.nta-bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #888;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  transition: all 0.15s;
}
.nta-bubble.selected {
  background: #2196f3;
  border-color: #1565c0;
  color: #fff;
}
.nta-bubble:hover {
  border-color: #333;
}
.nta-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #888;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  transition: all 0.15s;
  border-radius: 3px;
}
.nta-checkbox.selected {
  background: #2196f3;
  border-color: #1565c0;
  color: #fff;
}
.nta-checkbox:hover {
  border-color: #333;
}
.nta-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nta-btn-save {
  background: #4caf50;
  color: #fff;
}
.nta-btn-save:hover {
  background: #388e3c;
}
.nta-btn-save-review {
  background: #1565c0;
  color: #fff;
}
.nta-btn-save-review:hover {
  background: #0d47a1;
}
.nta-btn-clear {
  background: #fff;
  color: #333;
  border: 1px solid #999;
}
.nta-btn-clear:hover {
  background: #eee;
}
.nta-btn-mark-review {
  background: #e87722;
  color: #fff;
}
.nta-btn-mark-review:hover {
  background: #c96010;
}
.nta-btn-nav {
  background: #eee;
  color: #333;
  border: 1px solid #999;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
}
.nta-btn-nav:hover {
  background: #ddd;
}
.nta-btn-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.nta-btn-submit {
  background: #1565c0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.nta-btn-submit:hover {
  background: #0d47a1;
}
.nta-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.nta-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
}
.nta-palette-btn {
  width: 100%;
  min-height: 40px;
  aspect-ratio: 1;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #aaa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  position: relative;
}
.nta-palette-btn.st-not-visited {
  background: #e0e0e0;
  color: #555;
}
.nta-palette-btn.st-not-answered {
  background: #e53935;
  color: #fff;
  border-color: #c62828;
}
.nta-palette-btn.st-answered {
  background: #43a047;
  color: #fff;
  border-color: #2e7d32;
}
.nta-palette-btn.st-marked-review {
  background: #7b1fa2;
  color: #fff;
  border-color: #6a1b9a;
}
.nta-palette-btn.st-answered-review {
  background: #7b1fa2;
  color: #fff;
  border-color: #6a1b9a;
}
.nta-palette-btn.st-answered-review::after {
  content: "";
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #43a047;
  border-radius: 50%;
  border: 1px solid #fff;
}
.nta-palette-btn.current-q {
  outline: 3px solid #e87722;
  outline-offset: 1px;
}
.nta-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
}
.nta-legend-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid #aaa;
}
.nta-legend-badge.lg-not-visited {
  background: #e0e0e0;
  color: #555;
}
.nta-legend-badge.lg-not-answered {
  background: #e53935;
  color: #fff;
}
.nta-legend-badge.lg-answered {
  background: #43a047;
  color: #fff;
}
.nta-legend-badge.lg-marked-review {
  background: #7b1fa2;
  color: #fff;
}
.nta-legend-badge.lg-answered-review {
  background: #7b1fa2;
  color: #fff;
  position: relative;
}
.nta-legend-badge.lg-answered-review::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #43a047;
  border-radius: 50%;
  border: 1px solid #fff;
}
.nta-integer-input {
  width: 200px;
  padding: 8px 12px;
  font-size: 16px;
  border: 2px solid #888;
  border-radius: 4px;
  outline: none;
}
.nta-integer-input:focus {
  border-color: #1565c0;
}
.nta-test-shell {
  max-width: 1200px;
  margin: 0 auto;
}
.nta-test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
}
.nta-test-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nta-subject-tabs {
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow-x: auto;
}
.nta-main-layout {
  display: flex;
  gap: 0;
  border: 1px solid #bbb;
  border-top: none;
  background: #fff;
}
.nta-main-panel {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.nta-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid #bbb;
  padding: 12px;
  background: #fafafa;
  box-sizing: border-box;
}
.nta-sidebar-panel {
  width: 100%;
  max-width: 100%;
}
.nta-mobile-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #bbb;
  border-top: none;
  background: #fff;
}
.nta-mobile-palette-toggle {
  border: 1px solid #1565c0;
  background: #eff6ff;
  color: #0f4c81;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.nta-mobile-toolbar-meta {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  text-align: right;
}
.nta-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nta-mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.nta-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.nta-mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 100vw);
  background: #fff;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.nta-mobile-drawer.open .nta-mobile-drawer-panel {
  transform: translateX(0);
}
.nta-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.nta-mobile-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.nta-mobile-drawer-close {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.nta-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
}
@media (max-width: 960px) {
  .nta-test-shell {
    padding: 0 12px 24px;
  }
  .nta-test-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .nta-test-header-meta {
    width: 100%;
    justify-content: space-between;
  }
  .nta-subject-tabs {
    gap: 4px;
  }
  .nta-subject-tab {
    white-space: nowrap;
    padding: 8px 14px;
  }
  .nta-main-layout {
    display: block !important;
  }
  .nta-sidebar {
    display: none !important;
  }
  .nta-mobile-toolbar {
    display: flex;
  }
  .nta-mobile-drawer {
    display: block;
  }
  .nta-bubble-row {
    gap: 12px;
  }
  .nta-integer-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 640px) {
  .nta-test-shell {
    padding: 0 8px 20px;
  }
  .nta-test-header {
    padding: 12px;
  }
  .nta-test-header-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .nta-mobile-toolbar {
    padding: 10px 12px;
    align-items: flex-start;
  }
  .nta-mobile-toolbar-meta {
    text-align: left;
  }
  .nta-mobile-drawer-panel {
    width: 100%;
  }
}
