/* --- OPTIONS POP LAYOUT (FLOATING) --- */
.exam-pop-container {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-black) !important;
  border: 1px solid var(--bg-white) !important;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 0;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: popDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.exam-pop-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.exam-pop-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.exam-pop-opt-btn {
  background: var(--bg-black) !important;
  border: 1px solid var(--bg-white) !important;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--bg-white) !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  max-width: 120px;
  text-align: center;
  font-family: var(--app-font) !important;
}
.exam-pop-opt-btn:hover {
  background: var(--bg-white) !important;
  color: var(--bg-black) !important;
}
.exam-pop-opt-btn.active {
  background: var(--bg-white) !important;
  border-color: var(--bg-white) !important;
  color: var(--bg-black) !important;
}

/* STUDY POP VARIANT */
.study-pop-container {
  background: var(--bg-black) !important;
  border-color: var(--bg-white) !important;
}
.study-pop-lbl {
  color: var(--bg-white) !important;
}
.study-pop-opt-btn.active {
  background: var(--bg-white) !important;
  border-color: var(--bg-white) !important;
  color: var(--bg-black) !important;
}

/* --- REVIEWER SCROLL SYSTEM --- */
.reviewer-scroll-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
  margin: 16px 0;
  border-bottom: 1px solid var(--bg-white);
}
.reviewer-scroll-view::-webkit-scrollbar {
  width: 6px;
}
.reviewer-scroll-view::-webkit-scrollbar-track {
  background: transparent;
}
.reviewer-scroll-view::-webkit-scrollbar-thumb {
  background: var(--bg-white);
  border-radius: 10px;
}
.reviewer-item {
  background: var(--bg-black) !important;
  border: 1px solid var(--bg-white) !important;
  border-radius: 12px;
  padding: 16px;
  text-align: justify;
  color: var(--bg-white) !important;
}
.reviewer-ans-box {
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-black) !important;
  color: var(--bg-white) !important;
  border: 1px solid var(--bg-white) !important;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  word-break: break-word;
}

/* --- FLASHCARDS STRUCTURAL STYLES --- */
.flashcard-options-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.flashcard-opt-btn {
  background: var(--bg-black) !important;
  border: 1px solid var(--bg-white) !important;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--bg-white) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--app-font) !important;
}
.flashcard-opt-btn:hover {
  background: var(--bg-white) !important;
  color: var(--bg-black) !important;
}
.flashcard-opt-btn.active {
  background: var(--bg-white) !important;
  border-color: var(--bg-white) !important;
  color: var(--bg-black) !important;
}

.flashcard-stage {
  perspective: 1000px;
  width: 100%;
  min-height: 240px;
  margin: 16px 0;
  display: flex;
  justify-content: center;
}
.flashcard-card {
  width: 100%;
  max-width: 500px;
  min-height: 240px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.flashcard-card.flipped {
  transform: rotateY(180deg);
}
.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 1px solid var(--bg-white) !important;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.flashcard-front {
  background: var(--bg-black) !important;
  color: var(--bg-white) !important;
}
.flashcard-back {
  background: var(--bg-black) !important;
  border-color: var(--bg-white) !important;
  color: var(--bg-white) !important;
  transform: rotateY(180deg);
}
.flashcard-face-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-white) !important;
  position: absolute;
  top: 12px;
}
.flashcard-face-content {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
  color: var(--bg-white) !important;
}
.flashcard-hint-tap {
  font-size: 12px;
  color: var(--bg-white) !important;
  margin-top: 16px;
  opacity: 0.6;
  font-style: italic;
  position: absolute;
  bottom: 12px;
}

.active-recall-input-container {
  width: 100%;
  max-width: 500px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.active-recall-input {
  width: 100%;
  background: var(--bg-black) !important;
  border: 2px solid var(--bg-white) !important;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--bg-white) !important;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--app-font) !important;
}
.active-recall-input:focus {
  border-color: var(--bg-white) !important;
}
.active-recall-feedback {
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  text-align: left;
}
.active-recall-feedback.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
}
.active-recall-feedback.incorrect {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid #ef4444 !important;
  color: #f87171 !important;
}

/* --- INSIGHTS STYLING --- */
.insights-btn {
  background: var(--bg-black) !important;
  border: 1px solid var(--bg-white) !important;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--bg-white) !important;
  z-index: 10;
  padding: 0;
  flex-shrink: 0;
}
.insights-btn:hover {
  background: var(--bg-white) !important;
  border-color: var(--bg-white) !important;
  transform: scale(1.05);
  color: var(--bg-black) !important;
}

.insight-set-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.insight-set-title {
  color: var(--bg-white) !important;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 12px 0;
  border-bottom: 1px solid var(--bg-white) !important;
  padding-bottom: 6px;
  width: 100%;
  text-align: center;
}

.insight-table-header {
  display: flex;
  width: 100%;
  padding: 8px 16px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 800;
  color: var(--bg-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bg-white) !important;
  margin-bottom: 8px;
}
.insight-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
  background: var(--bg-black) !important;
  border: 1px solid var(--bg-white) !important;
  border-radius: 10px;
  padding: 10px 16px;
  box-sizing: border-box;
  gap: 8px;
  color: var(--bg-white) !important;
}
.insight-col-subj {
  flex: 2;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-white) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.insight-col-stat {
  flex: 0.55;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-white) !important;
  white-space: nowrap;
}

