/* CBSE 10 Study Room — subject circles & evaluate workspace */
.hidden {
  display: none !important;
}

.sr-main {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 28px;
  position: relative;
  z-index: 5;
}

.sr-phase-lead {
  text-align: center;
  color: #94a3b8;
  font-size: 0.86rem;
  margin: 8px 0 12px;
}

/* Subject circles — landing */
.sr-subject-circles {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 6px 0 16px;
}

.sr-subject-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.85));
  color: #f1f5f9;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sr-subject-circle:hover {
  transform: scale(1.04);
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.2);
}

.sr-subject-circle.science {
  border-color: rgba(52, 211, 153, 0.35);
}

.sr-subject-circle.math {
  border-color: rgba(251, 191, 36, 0.35);
}

.sr-circle-icon {
  font-size: 2.5rem;
}

.sr-circle-title {
  font-weight: 700;
  font-size: 1rem;
}

.sr-circle-code {
  font-size: 0.7rem;
  opacity: 0.65;
}

/* Chapter grid */
.sr-chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.sr-chapter-pick {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
}

.sr-chapter-pick:hover {
  border-color: rgba(103, 232, 249, 0.4);
  background: rgba(6, 182, 212, 0.08);
}

.sr-ch-num {
  font-size: 0.65rem;
  opacity: 0.55;
}

.sr-ch-title {
  font-size: 0.78rem;
  line-height: 1.35;
}

.sr-ch-count {
  font-size: 0.62rem;
  color: #67e8f9;
}

.sr-back-btn {
  display: block;
  margin: 16px auto 0;
}

/* Learn vs Evaluate */
.sr-intent-circles {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto 24px;
}

.sr-intent-card {
  flex: 1;
  min-width: 200px;
  padding: 24px 20px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  cursor: pointer;
  text-align: center;
}

.sr-intent-card strong {
  display: block;
  font-size: 1.05rem;
  margin: 8px 0 4px;
}

.sr-intent-card small {
  color: #64748b;
  font-size: 0.72rem;
}

.sr-intent-card.primary {
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.sr-intent-icon {
  font-size: 2rem;
}

.sr-coming-soon {
  text-align: center;
  max-width: 420px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 16px;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.sr-coming-soon h2 {
  color: #fde68a;
  font-size: 1.1rem;
}

/* Corner orbs (evaluate) */
.sr-corner-orbs {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
  z-index: 20;
}

.sr-corner-orbs .sr-corner-orb {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.85;
}

.sr-corner-orbs .sr-corner-orb.active {
  opacity: 1;
  border-color: #67e8f9;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

body.sr-eval-active .portal-main {
  padding-top: 56px;
}

body.sr-learn-active .portal-main {
  padding-top: 56px;
}

/* Learn layout */
.sr-learn-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .sr-learn-layout {
    grid-template-columns: 1fr;
  }
}

.sr-learn-main {
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(15, 23, 42, 0.65);
  padding: 16px;
  min-height: 560px;
}

.sr-learn-content {
  max-height: min(68vh, 640px);
  overflow-y: auto;
  padding-right: 6px;
}

.sr-ai-disclaimer {
  font-size: 0.72rem;
  color: #fde68a;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 14px;
  background: rgba(251, 191, 36, 0.06);
}

.sr-learn-section {
  margin-bottom: 18px;
}

.sr-learn-section h3 {
  font-size: 0.85rem;
  color: #a5f3fc;
  margin: 0 0 8px;
}

.sr-section-hint {
  font-size: 0.68rem;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.4;
}

.sr-learn-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.sr-learn-body {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.sr-video-card {
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.35);
}

.sr-video-card h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.sr-video-companion h3 {
  color: #fde68a;
}

.sr-video-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sr-video-live {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5eead4;
}

.sr-video-id {
  font-size: 0.62rem;
  color: #64748b;
  font-family: ui-monospace, monospace;
}

.sr-video-title {
  font-size: 0.78rem;
  color: #e2e8f0;
  margin: 0 0 8px;
}

.sr-video-note {
  font-size: 0.68rem;
  color: #94a3b8;
  margin: 8px 0 0;
}

.sr-video-placeholder {
  border-style: dashed;
  background: rgba(15, 23, 42, 0.45);
}

.sr-video-placeholder-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sr-video-placeholder-icon {
  font-size: 1.1rem;
}

.sr-video-placeholder-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.sr-video-placeholder-text {
  font-size: 0.68rem;
  color: #94a3b8;
  margin: 0 0 6px;
  line-height: 1.4;
}

.sr-video-placeholder-text code {
  color: #f472b6;
  font-family: ui-monospace, monospace;
}

.sr-video-external-link {
  font-size: 0.68rem;
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
}

.sr-video-external-link:hover {
  text-decoration: underline;
}

.sr-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.sr-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sr-transcripts {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.sr-transcripts time {
  color: #67e8f9;
  font-family: ui-monospace, monospace;
  margin-right: 6px;
}

.sr-learn-links a {
  color: #67e8f9;
}

.sr-learn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.sr-learn-actions a.btn-portal {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Evaluate layout */
.sr-eval-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .sr-eval-layout {
    grid-template-columns: 1fr;
  }
}

.sr-eval-main {
  border-radius: 16px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(15, 23, 42, 0.65);
  padding: 16px;
  min-height: 560px;
}

.sr-eval-header h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #f1f5f9;
}

.sr-chapter-meta {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
}

.sr-question-source {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.45);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.sr-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sr-diff-label select {
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 0.72rem;
}

.sr-eval-chat {
  min-height: min(58vh, 520px);
  max-height: min(68vh, 640px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(2, 6, 23, 0.35);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-eval-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
}

.sr-chat-line {
  font-size: 0.78rem;
  margin: 6px 0;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.4;
}

.sr-chat-question {
  background: rgba(6, 182, 212, 0.08);
  color: #a5f3fc;
}

.sr-chat-student {
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  text-align: right;
}

.sr-chat-system {
  color: #94a3b8;
  font-size: 0.7rem;
}

.sr-q-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.05);
}

.sr-q-card.sr-q-active {
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.12);
}

.sr-q-card.sr-q-done {
  opacity: 0.72;
  border-style: dashed;
}

.sr-q-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  margin: 0 0 8px;
}

.sr-q-prompt {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  margin: 8px 0 12px;
  line-height: 1.45;
}

.sr-opt-label {
  display: block;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.sr-text-answer {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.sr-q-actions {
  margin-top: 12px;
}

.sr-show-answer-btn {
  font-size: 0.78rem;
  padding: 6px 12px;
}

.sr-q-answer-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.sr-answer-disclaimer {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: #fcd34d;
  line-height: 1.45;
}

.sr-q-answer-body {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sr-eval-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sr-distraction {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 10px;
}

.sr-students-panel {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  padding: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.sr-students-panel h3 {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.sr-students-hint {
  font-size: 0.62rem;
  color: #64748b;
  margin: 0 0 10px;
}

.sr-students-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-student-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.sr-student-item img {
  border-radius: 50%;
}

.sr-student-item em {
  display: block;
  font-size: 0.6rem;
  color: #64748b;
  font-style: normal;
}

.sr-modal {
  border: none;
  border-radius: 16px;
  padding: 20px;
  background: #1e293b;
  color: #f1f5f9;
  max-width: 400px;
}

.sr-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.sr-eval-choices label {
  display: block;
  margin: 8px 0;
  font-size: 0.82rem;
}

.sr-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.sr-results {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 183, 0.3);
  background: rgba(16, 185, 129, 0.06);
  font-size: 0.85rem;
  color: #d1fae5;
}

.sr-load-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  font-size: 0.85rem;
}

.sr-students-empty {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  list-style: none;
  padding: 8px 0;
}

.sr-grade-list {
  margin: 10px 0;
  padding-left: 18px;
}

.sr-teacher-note {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sr-open-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.sr-done-msg {
  color: #94a3b8;
  font-size: 0.85rem;
}
