/* ======================================================
   GLOBAL PAGE BACKGROUND
====================================================== */

:root {
  --rt-dark-green: #0b2e1c;
  --rt-dark-green-soft: rgba(11, 46, 28, 0.85);
  --rt-panel-width: 300px;
  --rt-panel-collapsed-width: 34px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f5f5f5;
  background: radial-gradient(circle at center, #123d2a 0%, #0b2e1c 85%);
  overflow-x: hidden;
}

/* ======================================================
   APPLICATION LAYOUT
====================================================== */

.app-shell {
  width: 100%;
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--rt-panel-width) 1fr;
  min-height: 100vh;
  align-items: start;
  transition: grid-template-columns 0.25s ease;
}

body.panel-collapsed .app-shell {
  grid-template-columns: var(--rt-panel-collapsed-width) 1fr;
}

/* ======================================================
   TOP CONTROL PANEL
====================================================== */

.brand-panel {
  box-shadow: inset -25px 0 40px rgba(0,0,0,0.35);
  min-width: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-overlay {
  padding: 0.5rem;
  background: linear-gradient(
    to bottom,
    var(--rt-dark-green-soft),
    rgba(11,46,28,0.65)
  );
  min-height: 100vh;
}

body.panel-collapsed .brand-overlay > *:not(.page-title):not(#top-left-bar) {
  display: none;
}

body.panel-collapsed #top-left-bar {
  justify-content: center;
}

body.panel-collapsed #top-left-bar .top-box:not(#hamburger-btn) {
  display: none;
}

body.panel-collapsed #hamburger-btn {
  display: flex;
}

#hamburger-btn {
  cursor: pointer;
  transition: transform 0.2s ease;
}

#hamburger-btn:hover {
  transform: scale(1.1);
}

.page-title {
  margin: 0 0 4px 0;
  color: #c8facc;
  padding-left: 0;
  text-align: center;
}

body.panel-collapsed .page-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.95rem;
  padding-left: 0;
  margin: 40px 0 0 0;
}

.moderator-panel > summary {
  color: #9dd5b3;
  background: rgba(157, 213, 179, 0.1);
  border-radius: 8px;
  padding: 6px;
}

/* ======================================================
   VISITOR SECTION
====================================================== */

.visitor-tools > summary {
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.visitor-tools details {
  margin-left: 6px;
}

.menu-content {
  padding: 6px 8px;
}

.menu-item {
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item.empty {
  opacity: 0.6;
}

.section-block {
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 6px;
}

.section-title {
  font-weight: 500;
  margin-bottom: 6px;
  color: #c8facc;
  text-align: center;
}

.section-divider {
  margin: 6px 0;
  height: 5px;
  background: rgba(255,255,255,0.35);
  border-radius: 500px;
}

.upcoming-topics {
  margin-top: 8px;
  font-size: 13px;
}

.upcoming-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.upcoming-item .date {
  font-weight: 600;
  color: #9dd5b3;
}

.upcoming-item .title {
  flex: 1;
  margin-left: 8px;
}

.empty-upcoming {
  font-size: 12px;
  opacity: 0.6;
  padding: 6px;
}

/* ======================================================
   SEARCH AREA
====================================================== */

.search-results {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  max-height: 220px;
  overflow-y: auto;
}

.search-results-title {
  font-weight: 700;
  margin: 8px 0 6px 0;
}

.search-results ul {
  margin: 0;
  padding-left: 18px;
}

.search-results li {
  margin-bottom: 6px;
}

.search-message {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

/* ======================================================
   REFLECTION FORM
====================================================== */

.reflection-form textarea {
  width: 92%;
  resize: vertical;
}

.reflection-form input[type="text"],
.moderator-panel input[type="text"],
.moderator-panel input[type="password"],
.moderator-panel input[type="file"],
.moderator-panel input[type="number"],
.visitor-section input[type="text"] {
  width: 92%;
  box-sizing: border-box;
  margin-bottom: 6px;
}

.reflection-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-input {
  font-size: 12px;
  opacity: 0.8;
}
/* ======================================================
   VISITOR CONTROL GROUPS
====================================================== */

.visitor-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 6px;
  gap: 10px;
  flex-wrap: wrap;
}

.length-counter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.length-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-submit-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 2px;
}

.color-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.color-picker input[type="color"] {
  height: 34px;
  width: 90px;
}

.mini-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

select {
  min-width: 70px;
}

.char-counter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;   /* 🔥 prevents wrapping */
  justify-content: space-between;
}

.char-counter {
  font-weight: 600;
}

.mini-label {
  font-size: 12px;
  opacity: 0.8;
}

/* ======================================================
   RIGHT PANEL
====================================================== */

.table-stage {
  width: 630px;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* 🔥 REMOVE THE PROBLEM */
  min-height: 100vh;
  align-self: auto;
}

/* ======================================================
   HERO IMAGE ABOVE TABLE
====================================================== */

.table-hero {
  height: auto;
  min-height: 220px;
  max-height: 300px;
  overflow: hidden;
}

.table-hero {
  width: 637px;
  height: 260px;

  background-image: url("/static/icons/Reflecting_Table_Background.png");
  background-repeat: no-repeat;

  background-size: contain;   /* 🔥 THIS FIXES CROPPING */
  background-position: center;

  background-color: #0b2e1c;  /* optional: fills empty space nicely */

  opacity: 0.9;
  border: 3px solid rgb(114, 233, 213);
  position: relative;
}

/* =========================
   HERO VIDEO OVERLAY (SAFE)
========================= */

.hero-video-overlay {
  position: absolute;
  top: -5px;
  right: 15px;
  width: 600px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  z-index: 3;
}

.hero-video-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ======================================================
   TABLE EXPERIENCE
====================================================== */

.table-wrap {
  position: relative;
  z-index: 1;
  width: 630px;
  margin: 10px 0 20px 0;
  margin-top: 0px;
  min-height: 100%;
  flex-grow: 1;
  border-radius: 30px;
  background: radial-gradient(
    ellipse at center,
    #c8facc 0%,
    #b2f2c0 45%,
    #9fe8b2 100%
  );
  box-shadow:
    inset 0 0 40px rgba(255,255,255,0.6),
    inset 0 0 80px rgba(0,0,0,0.12),
    0 40px 80px rgba(0,0,0,0.55);
  padding: 6px;
  padding-bottom: 60px;
}

.age-rule {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 6px;
  margin-bottom: 10px;
  color: #053814;  /* your dark green */
}

/* ======================================================
   TOPIC HEADER
====================================================== */

.table-header {
  text-align: center;
}

.topic-pill {
  padding: 6px 14px;
  border-radius: 650px;
  background: var(--rt-dark-green);
  color: #ffffff;
  font-weight: 650;
  text-align: center;
  margin: 0 auto;
}

/* ======================================================
   TABLE LOGO
====================================================== */

.table-logo {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 80px;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 6px 6px rgba(0,0,0,0.35);
  margin-top: 0;
}

/* ======================================================
   AUDIO CONTROLS
====================================================== */

.audio-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.audio-controls button {
  background: rgba(255,255,255,0.78);
  color: #1d2b1f;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s ease;
}

.audio-controls button:hover {
  background: rgba(255,255,255,0.95);
}

/* ======================================================
   PROMPT DISPLAY
====================================================== */

.reflection-prompt {
  margin: 8px 0 10px 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(2,39,22,0.12);
  color: #14532d;
  font-weight: 700;
}

/* ======================================================
   STICKY NOTE BOARD
====================================================== */

.sticky-board {
  width: 100%;
  max-width: 620px;
  margin: 6px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-height: 70vh;
  overflow-y: auto;
  gap: 12px;
}

/* ======================================================
   STICKY NOTES
====================================================== */

.sticky-note {
  width: 90%;
  min-height: 140px;
  height: auto;
  padding: 36px 10px 10px 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-size: 0.85rem;
  word-break: break-word;
}

.sticky-note.editing {
  outline: 2px dashed rgba(0,0,0,0.35);
}

.note-actions {
  position: absolute;
  top: 2px;
  right: 6px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.note-actions form {
  display: flex;
  margin: 0;
}

.note-btn {
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.note-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  cursor: pointer;
}

/* Optional color feedback */
.edit-btn:hover {
  background: rgba(34, 197, 94, 0.8);
}

.delete-btn:hover {
  background: rgba(220, 38, 38, 0.85);
}

.block-btn:hover {
  background: rgba(127, 29, 29, 0.9);
}

.sticky-note {
  position: relative;
  padding-top: 28px; /* 🔥 gives space for buttons */
}

.flagged-header {
  font-size: 12px;
  font-weight: 600;
  color: #7a5c00;

  background: rgba(255, 215, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;

  margin 4px 6px;
  margin-bottom: 6px;
  display: inline-block;
}

.debug-info {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px 6px;
  line-height: 1.2;

  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 4px;
}

.sticky-note.flagged {
  border: 2px solid #ffd54d;

  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.4),
    0 8px 20px rgba(0,0,0,0.25);

  background: linear-gradient(
    to bottom,
    rgba(255, 250, 200, 0.9),
    rgba(255, 240, 180, 0.9)
  );
}

.flagged-header::after {
  content: " • needs review";
  font-weight: normal;
  opacity: 0.7;
}

.sticky-note {
  padding-top: 36px;
}

.note-content {
  margin-top: 4px;
}

/* ======================================================
   NOTE TEXT (EDITABLE)
====================================================== */

.note-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.3;
  overflow-y: auto;
}

.note-text[contenteditable="true"] {
  cursor: text;
}

.note-text[contenteditable="true"]:focus {
  outline: 2px dashed rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 2px;
}

.sort-controls {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.name-input {
  width: 100%;
  margin-top: 6px;
  padding: 4px;
  border-radius: 6px;
  border: none;
}

.note-author {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 10px;
  padding-top: 6px;
  
  font-size: 12px;
  opacity: 0.75;

  text-align: right;     /* clean alignment */
  font-style: italic;

  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}

/* ======================================================
   NOTE HEADER
====================================================== */

.note-name {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  opacity: 0.95;
}

/* ======================================================
   NOTE ACTION BUTTONS
====================================================== */

.delete-form {
  margin: 0;
}

.edit-actions {
  position: absolute;
  top: 6px;
  left: 34px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.save-btn,
.cancel-btn {
  background: rgba(0,0,0,0.3);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.68rem;
  line-height: 1;
}

.hidden {
  display: none !important;
}

.block-btn-top {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  z-index: 10;
}

.block-btn-top:hover {
  background: #cc0000;
}

/* ======================================================
   ACCESS / TIMER GROUPS
====================================================== */

#room_code_group,
#table_code_group {
  margin-top: 8px;
}

input[name="minutes"] {
  width: 92%;
  box-sizing: border-box;
  margin-bottom: 6px;
}

/* 🔒 TIMER SAFE ZONE (DOES NOT TOUCH TABLE) */
#timer-container {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none; /* 🔥 cannot interfere */
}

.timer-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #0b3d2e;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ======================================================
   SCROLLBAR
====================================================== */

.sticky-note::-webkit-scrollbar {
  width: 6px;
}

.sticky-note::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

.sticky-board::-webkit-scrollbar {
  width: 8px;
}

.sticky-board::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

/* ======================================================
   BUTTONS
====================================================== */

.primary-btn {
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: #b6e3c6;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 6px;
  transition: 0.2s ease;
  color: #102117;
}

.primary-btn:hover {
  background: #9fdab1;
}

.primary-btn.small {
  padding: 4px 10px;
  font-size: 0.8rem;
}

.secondary-btn {
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 6px;
  transition: 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.22);
}

.note-btn,
.approve-btn,
.unflag-btn,
.block-btn {
  width: 22px;
  height: 22px;

  font-size: 12px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;
}

/* =========================================
   GLOBAL BUTTON STYLE (MINT GREEN)
========================================= */

.primary-btn,
.secondary-btn,
button {
  background: #9dd5b3;              /* mint green */
  color: #053814;                   /* dark green text */
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* HOVER */
.primary-btn:hover,
.secondary-btn:hover,
button:hover {
  background: #7fc8a0;
}

/* ACTIVE CLICK */
.primary-btn:active,
.secondary-btn:active,
button:active {
  transform: scale(0.97);
}

/* SMALL BUTTON SIZE */
.small {
  padding: 4px 10px;
  font-size: 11px;
}

/* ======================================================
   STICKY NOTE ACTION BUTTONS (UNIFIED STYLE)
====================================================== */

.note-btn,
.approve-btn,
.unflag-btn {
  background-color: #9dd5b3; /* mint green */
  border: none;
  color: #053814; /* dark green text/icons */
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

/* 🔥 Hover effect */
.note-btn:hover,
.approve-btn:hover,
.unflag-btn:hover {
  background-color: #7fc9a3;
  transform: scale(1.05);
}

/* 🔥 Active click feel */
.note-btn:active,
.approve-btn:active,
.unflag-btn:active {
  transform: scale(0.95);
}

/* 🔥 Fix spacing */
.note-actions {
  display: flex;
  gap: 4px;
}

/* ======================================================
   VISITOR / MODERATOR PANELS
====================================================== */

.visitor-section,
.moderator-panel {
  margin-top: 8px;
}

.visitor-section summary,
.moderator-panel > summary,
.mod-section > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 6px;
  border-radius: 8px;
  list-style: none;
}

.visitor-section summary::-webkit-details-marker,
.moderator-panel summary::-webkit-details-marker,
.mod-section summary::-webkit-details-marker {
  display: none;
}

.visitor-section > summary::before,
.moderator-panel > summary::before,
.mod-section > summary::before {
  content: "▾ ";
}

.visitor-section:not([open]) > summary::before,
.moderator-panel:not([open]) > summary::before,
.mod-section:not([open]) > summary::before {
  content: "▸ ";
}

.mod-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mod-section > summary {
  background: rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.mod-section[open] > summary {
  background: rgba(255,255,255,0.15);
}

.moderator-plan-label {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 4px;
  margin-left: 6px;
}

.participants {
  margin: 8px 0 10px 0;
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

/* ======================================================
   AI SUMMARY
====================================================== */

.topic-summary {
  margin-top: 18px;
  padding: 6px;
  background: rgba(2, 39, 22, 0.12);
  border-radius: 16px;
  color: #0b3d2e;
  font-weight: 600;
}

.mini-audio-pill {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0b3d2e;
  color: #fff;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.mini-audio-player {
  margin-top: 10px;
  width: 100%;
  height: 60px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b3d2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-audio-player iframe {
  width: 250px;
  height: 140px;
  transform: scale(0.6);
  transform-origin: center;
  border: none;
}

/* Sidebar toggle */
#side-panel {
    transition: transform 0.3s ease;
}

#top-left-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;   /* centers under title */
  gap: 12px;

  margin: 6px 0 12px 0;     /* spacing above/below */
}

/* 🔥 UNIFIED BOXES */
.top-box {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0b3d2e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.35);

  padding: 0px;
  margin: 0px;
}

.top-box:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* LOGO INSIDE BOX */
.top-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* TIMER BOX */
.timer-box {
  flex-direction: column;
  font-size: 10px;
  color: white;

  line-height: 1;
  text-align: center;

  gap: 2px;
}

/* CLOCK ICON */
.clock-icon {
  font-size: 14px;
}

.timer-pill {
  font-size: 12px;
  padding: 4px 10px;
}

#top-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  #hamburger-btn {
    transform: scale(0.9);
  }
}

.input-hint {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.accuracy-modal.hidden {
    display: none;
}

.accuracy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accuracy-modal-content {
    width: 95vw;
    max-width: 1400px;
    max-height: 85vh;
    background: #ffffff;
    color: #111111;
    border-radius: 18px;
    padding: 20px;
    overflow: hidden;
}

.accuracy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.accuracy-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accuracy-modal-title {
  display: flex;
  flex-direction: column;
  gap: 2px;  
  white-space: nowrap;
}

.reflection-count{
  font-size: 18 px;
}

.reviewed-count {
  display: flex;
  flex-direction: column;
  gap: 2px;  
  white-space: nowrap;
}

.accuracy-score {
    color: #2e7d32;
    font-size: 18px;
    font-weight: 700;
}

.accuracy-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 600;
}

.accuracy-divider {
    color: #999;
    font-size: 18px;
}

.modal-close-btn {
    border: none;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 22px;
    cursor: pointer;
}

.accuracy-table-wrap {
    max-height: 65vh;
    overflow: auto;
}

.accuracy-table {
    table-layout: fixed;
    min-width: 100%;
}

.accuracy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.accuracy-table th,
.accuracy-table td {
    border-bottom: 1px solid #dddddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.accuracy-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.accuracy-table th {
    background: #f2f2f2;
    position: sticky;
    top: 0;
}

.accuracy-table th:nth-child(1),
.accuracy-table td:nth-child(1) {
    width: 50px;
}

.accuracy-table th:nth-child(2),
.accuracy-table td:nth-child(2) {
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accuracy-table th:nth-child(3),
.accuracy-table td:nth-child(3) {
    width: 90px;
}

.accuracy-table th:nth-child(4),
.accuracy-table td:nth-child(4) {
    width: 110px;
}

/* AI Comprehension */
.accuracy-table th:nth-child(5),
.accuracy-table td:nth-child(5) {
    width: 110px;
}

/* Human Comprehension */
.accuracy-table th:nth-child(6),
.accuracy-table td:nth-child(6) {
    width: 110px;
}

/* Notes */
.accuracy-table th:nth-child(7),
.accuracy-table td:nth-child(7) {
    width: 260px;
}

.accuracy-table td:nth-child(7) select,
.accuracy-table td:nth-child(7) input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.accuracy-table td:nth-child(7) button {
    width: 100%;
}
.accuracy-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.accuracy-table tbody tr:hover {
    background: #eef6ff;
}

.sentiment-positive {
    color: #2e7d32;
    font-weight: 600;
}

.sentiment-negative {
    color: #c62828;
    font-weight: 600;
}

.sentiment-neutral {
    color: #616161;
    font-weight: 600;
}

.comprehension-mastered {
    color: #2e7d32;
    font-weight: 600;
}

.comprehension-progressing {
    color: #1976d2;
    font-weight: 600;
}

.comprehension-confused {
    color: #ef6c00;
    font-weight: 600;
}

.comprehension-off-topic {
    color: #c62828;
    font-weight: 600;
}

.comp-mastered {
    color: #1565c0;
    font-weight: 600;
}

.comp-progressing {
    color: #2e7d32;
    font-weight: 600;
}

.comp-confused {
    color: #ef6c00;
    font-weight: 600;
}

.comp-off-topic {
    color: #c62828;
    font-weight: 600;
}

.agreement-flag {
    color: #2e7d32;
    font-weight: 700;
}

.disagreement-flag {
    color: #c62828;
    font-weight: 700;
}

.pending-flag {
    color: #757575;
    font-weight: 600;
}

/* ======================================================
   PDF UPLOX
====================================================== */
.pdf-preview {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 12px;
}

.pdf-text {
  max-height: 120px;
  overflow-y: auto;
  margin-top: 5px;
}

.upload-success {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(0, 255, 150, 0.15);
  border: 1px solid rgba(0, 255, 150, 0.4);
  border-radius: 6px;
  font-size: 12px;
  color: #d2f7f1;
}

.uploaded-files {
  margin-top: 10px;
}

.section-label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 5px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 8px;
  margin-bottom: 4px;

  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

.file-name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9ef5d1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.file-name:hover {
  color: #ffffff;
  text-decoration: underline;
}

.delete-file-btn {
  background: transparent;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 14px;
}