
/* ==========================================================================
   CodeCampus LMS v2.9.80
   Student Submissions — Premium Review Queue for 40+ Students
   ========================================================================== */

body.cc-review-queue-v2980 {
  --ccrq-bg: #071321;
  --ccrq-panel: rgba(10, 26, 45, .92);
  --ccrq-panel-2: rgba(13, 32, 54, .86);
  --ccrq-line: rgba(111, 143, 184, .20);
  --ccrq-line-strong: rgba(69, 184, 255, .34);
  --ccrq-text: #edf6ff;
  --ccrq-muted: #8ca4c2;
  --ccrq-cyan: #20c5f5;
  --ccrq-violet: #7065ff;
  --ccrq-green: #37d7a4;
  --ccrq-gold: #f5c75c;
  --ccrq-red: #fb7185;
}

html[data-theme="light"] body.cc-review-queue-v2980 {
  --ccrq-bg: #f3f7fc;
  --ccrq-panel: rgba(255,255,255,.94);
  --ccrq-panel-2: rgba(248,251,255,.96);
  --ccrq-line: rgba(113, 143, 181, .24);
  --ccrq-line-strong: rgba(14, 165, 233, .34);
  --ccrq-text: #10233e;
  --ccrq-muted: #627a99;
  --ccrq-cyan: #0787bc;
  --ccrq-violet: #5f57e8;
  --ccrq-green: #0f9f77;
  --ccrq-gold: #9a6700;
  --ccrq-red: #d9435b;
}

/* Top review command center */
.cc-review-dashboard-v2980 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 18px;
  border: 1px solid var(--ccrq-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(32,197,245,.10), transparent 30%),
    linear-gradient(180deg, var(--ccrq-panel), var(--ccrq-panel-2));
  box-shadow: 0 18px 48px rgba(7, 22, 39, .08);
  overflow: hidden;
}

.cc-review-dashboard-v2980::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(112,101,255,.13), transparent 70%);
  pointer-events: none;
}

.cc-review-dashboard-copy-v2980 {
  min-width: 0;
}
.cc-review-dashboard-copy-v2980 small {
  display: block;
  margin-bottom: 5px;
  color: var(--ccrq-cyan) !important;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cc-review-dashboard-copy-v2980 b {
  display: block;
  color: var(--ccrq-text) !important;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.3;
}
.cc-review-dashboard-copy-v2980 span {
  display: block;
  margin-top: 4px;
  color: var(--ccrq-muted) !important;
  font-size: .82rem;
}

.cc-review-metrics-v2980 {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px,1fr));
  gap: 9px;
}
.cc-review-metric-v2980 {
  min-width: 88px;
  padding: 10px 12px;
  border: 1px solid var(--ccrq-line);
  border-radius: 15px;
  background: rgba(255,255,255,.022);
}
html[data-theme="light"] .cc-review-metric-v2980 { background: rgba(247,250,255,.9); }
.cc-review-metric-v2980 b {
  display: block;
  color: var(--ccrq-text) !important;
  font-size: 1.14rem;
  line-height: 1;
}
.cc-review-metric-v2980 span {
  display: block;
  margin-top: 5px;
  color: var(--ccrq-muted) !important;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Main master-detail review surface */
.cc-review-layout-v2980 {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  margin-top: 10px;
}

.cc-review-queue-v2980,
.cc-review-stage-shell-v2980 {
  min-width: 0;
  border: 1px solid var(--ccrq-line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--ccrq-panel), var(--ccrq-panel-2));
  box-shadow: 0 18px 46px rgba(7,22,39,.07);
}

.cc-review-queue-v2980 {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.cc-review-queue-head-v2980 {
  padding: 15px;
  border-bottom: 1px solid var(--ccrq-line);
}
.cc-review-queue-title-v2980 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.cc-review-queue-title-v2980 b {
  color: var(--ccrq-text) !important;
  font-size: .96rem;
}
.cc-review-queue-title-v2980 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(32,197,245,.10);
  color: var(--ccrq-cyan);
  font-size: .72rem;
  font-weight: 900;
}

.cc-review-search-v2980 {
  position: relative;
  display: flex;
  align-items: center;
}
.cc-review-search-v2980 svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ccrq-muted);
  pointer-events: none;
}
.cc-review-search-v2980 input {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 37px;
  border: 1px solid var(--ccrq-line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: var(--ccrq-text);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
html[data-theme="light"] .cc-review-search-v2980 input { background: #f8fbff; }
.cc-review-search-v2980 input:focus {
  border-color: var(--ccrq-line-strong);
  box-shadow: 0 0 0 4px rgba(32,197,245,.08);
}
.cc-review-search-v2980 input::placeholder { color: var(--ccrq-muted); opacity: .86; }
.cc-review-search-v2980 kbd {
  position: absolute;
  right: 10px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ccrq-line);
  border-radius: 7px;
  color: var(--ccrq-muted);
  background: rgba(255,255,255,.03);
  font: 800 .67rem/1 ui-monospace,monospace;
}

.cc-review-filter-row-v2980 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  margin-top: 10px;
}
.cc-review-filter-v2980 {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ccrq-muted);
  font: 800 .71rem/1 inherit;
  cursor: pointer;
  transition: .16s ease;
}
.cc-review-filter-v2980:hover {
  background: rgba(32,197,245,.06);
  color: var(--ccrq-text);
}
.cc-review-filter-v2980.active {
  border-color: rgba(32,197,245,.18);
  background: rgba(32,197,245,.10);
  color: var(--ccrq-cyan);
}

.cc-review-queue-list-v2980 {
  max-height: min(68vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-width: thin;
}
.cc-review-queue-list-v2980::-webkit-scrollbar { width: 8px; }
.cc-review-queue-list-v2980::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(108,139,177,.28);
}

.cc-review-student-btn-v2980 {
  position: relative;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin: 0 0 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}
.cc-review-student-btn-v2980:hover {
  transform: translateX(2px);
  border-color: var(--ccrq-line);
  background: rgba(255,255,255,.025);
}
.cc-review-student-btn-v2980.active {
  border-color: rgba(32,197,245,.24);
  background: linear-gradient(135deg, rgba(32,197,245,.10), rgba(112,101,255,.07));
  box-shadow: inset 3px 0 0 var(--ccrq-cyan);
}
.cc-review-avatar-v2980 {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #695fff, #21c8f6);
  color: white;
  font-size: .76rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(58,99,207,.18);
}
.cc-review-student-text-v2980 {
  min-width: 0;
}
.cc-review-student-text-v2980 b {
  display: block;
  overflow: hidden;
  color: var(--ccrq-text) !important;
  font-size: .79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-review-student-text-v2980 small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ccrq-muted) !important;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-review-queue-status-v2980 {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.cc-review-grade-dot-v2980,
.cc-review-live-dot-v2980 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cc-review-grade-dot-v2980.ungraded {
  background: var(--ccrq-gold);
  box-shadow: 0 0 0 4px rgba(245,199,92,.09);
}
.cc-review-grade-dot-v2980.graded {
  background: var(--ccrq-green);
  box-shadow: 0 0 0 4px rgba(55,215,164,.09);
}
.cc-review-live-dot-v2980 {
  display: none;
  background: var(--ccrq-cyan);
  box-shadow: 0 0 0 4px rgba(32,197,245,.10);
}
.cc-review-student-btn-v2980.is-live .cc-review-live-dot-v2980 { display: block; }

.cc-review-queue-empty-v2980 {
  padding: 30px 16px;
  color: var(--ccrq-muted);
  text-align: center;
  font-size: .78rem;
}

/* Active submission panel */
.cc-review-stage-shell-v2980 {
  overflow: hidden;
}
.cc-review-stage-toolbar-v2980 {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border-bottom: 1px solid var(--ccrq-line);
  background: color-mix(in srgb, var(--ccrq-panel) 91%, transparent);
  backdrop-filter: blur(16px);
}
.cc-review-stage-person-v2980 {
  min-width: 0;
}
.cc-review-stage-person-v2980 b {
  display: block;
  overflow: hidden;
  color: var(--ccrq-text) !important;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-review-stage-person-v2980 small {
  display: block;
  margin-top: 2px;
  color: var(--ccrq-muted) !important;
  font-size: .69rem;
}
.cc-review-stage-actions-v2980 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cc-review-nav-btn-v2980,
.cc-review-mobile-queue-toggle-v2980 {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--ccrq-line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--ccrq-text);
  font: 800 .72rem/1 inherit;
  cursor: pointer;
  transition: .16s ease;
}
.cc-review-nav-btn-v2980:hover,
.cc-review-mobile-queue-toggle-v2980:hover {
  transform: translateY(-1px);
  border-color: var(--ccrq-line-strong);
  background: rgba(32,197,245,.06);
}
.cc-review-nav-btn-v2980:disabled {
  opacity: .38;
  cursor: default;
  transform: none;
}
.cc-review-mobile-queue-toggle-v2980 { display: none; }

.cc-review-stage-v2980 {
  min-width: 0;
  padding: 14px;
}

/* Existing submission card becomes the focused premium inspector */
.cc-review-stage-v2980 > .cc-review-student-card-v2980 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 19px !important;
  box-shadow: none !important;
  animation: ccReviewCardEnter2980 .30s cubic-bezier(.22,.75,.22,1);
}
.cc-review-student-card-v2980[hidden] { display: none !important; }

@keyframes ccReviewCardEnter2980 {
  from { opacity: 0; transform: translateY(7px) scale(.996); }
  to { opacity: 1; transform: none; }
}

/* Make large code reviews less exhausting */
.cc-review-stage-v2980 details {
  scroll-margin-top: 80px;
}
.cc-review-stage-v2980 details > pre,
.cc-review-stage-v2980 details pre {
  max-height: min(44vh, 520px);
  overflow: auto;
}

/* Floating hint/status */
.cc-review-scalable-status-v2980 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  color: var(--ccrq-muted);
  font-size: .67rem;
}
.cc-review-scalable-status-v2980 i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ccrq-green);
  box-shadow: 0 0 0 4px rgba(55,215,164,.09);
}

/* Drawer backdrop for mobile */
.cc-review-drawer-backdrop-v2980 {
  display: none;
}

/* Light-mode refinements */
html[data-theme="light"] .cc-review-dashboard-v2980,
html[data-theme="light"] .cc-review-queue-v2980,
html[data-theme="light"] .cc-review-stage-shell-v2980 {
  box-shadow: 0 18px 42px rgba(30,61,99,.08);
}
html[data-theme="light"] .cc-review-student-btn-v2980:hover {
  background: #f7fbff;
}
html[data-theme="light"] .cc-review-student-btn-v2980.active {
  background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(99,102,241,.055));
}

/* Tablet */
@media (max-width: 1080px) {
  .cc-review-layout-v2980 {
    grid-template-columns: minmax(235px, 280px) minmax(0,1fr);
    gap: 12px;
  }
  .cc-review-dashboard-v2980 {
    grid-template-columns: 1fr;
  }
  .cc-review-metrics-v2980 {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* Mobile: queue becomes a premium bottom sheet */
@media (max-width: 820px) {
  .cc-review-dashboard-v2980 {
    padding: 15px;
    border-radius: 18px;
  }
  .cc-review-metrics-v2980 {
    gap: 7px;
  }
  .cc-review-metric-v2980 {
    min-width: 0;
    padding: 9px;
  }

  .cc-review-layout-v2980 {
    display: block;
  }

  .cc-review-stage-shell-v2980 {
    border-radius: 18px;
  }
  .cc-review-stage-toolbar-v2980 {
    grid-template-columns: minmax(0,1fr) auto;
  }
  .cc-review-stage-actions-v2980 .cc-review-nav-btn-v2980 span {
    display: none;
  }
  .cc-review-stage-v2980 {
    padding: 8px;
  }

  .cc-review-mobile-queue-toggle-v2980 {
    display: inline-flex;
  }

  .cc-review-queue-v2980 {
    position: fixed;
    z-index: 9000;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto;
    max-height: min(72dvh, 660px);
    border-radius: 22px;
    transform: translateY(calc(100% + 26px));
    opacity: 0;
    visibility: hidden;
    transition:
      transform .28s cubic-bezier(.2,.75,.2,1),
      opacity .22s ease,
      visibility .22s linear;
    box-shadow: 0 28px 80px rgba(0,0,0,.34);
  }
  body.cc-review-mobile-queue-open-v2980 .cc-review-queue-v2980 {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .cc-review-queue-list-v2980 {
    max-height: calc(72dvh - 145px);
  }

  .cc-review-drawer-backdrop-v2980 {
    position: fixed;
    display: block;
    z-index: 8990;
    inset: 0;
    background: rgba(3,9,18,.48);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .20s ease;
  }
  body.cc-review-mobile-queue-open-v2980 .cc-review-drawer-backdrop-v2980 {
    opacity: 1;
    pointer-events: auto;
  }

  .cc-review-stage-v2980 details > pre,
  .cc-review-stage-v2980 details pre {
    max-height: 52dvh;
  }
}

@media (max-width: 520px) {
  .cc-review-dashboard-v2980 {
    margin-left: -2px;
    margin-right: -2px;
  }
  .cc-review-dashboard-copy-v2980 span {
    font-size: .76rem;
  }
  .cc-review-metric-v2980 span {
    font-size: .57rem;
  }
  .cc-review-stage-toolbar-v2980 {
    padding: 9px;
  }
  .cc-review-stage-person-v2980 small {
    display: none;
  }
  .cc-review-nav-btn-v2980,
  .cc-review-mobile-queue-toggle-v2980 {
    width: 40px;
    padding: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .cc-review-student-btn-v2980,
  .cc-review-nav-btn-v2980,
  .cc-review-mobile-queue-toggle-v2980,
  .cc-review-queue-v2980,
  .cc-review-drawer-backdrop-v2980,
  .cc-review-stage-v2980 > .cc-review-student-card-v2980 {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   v2.9.81 layout repair
   The original submissions container can itself be a multi-column CSS grid.
   v2.9.80 was being treated as ONE grid item, which compressed the entire
   master-detail review workspace into a single column. Force the new review
   workspace to span the full submissions grid and use the available width.
   ========================================================================== */
.cc-review-host-v2981 {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.cc-review-host-v2981 > .cc-review-layout-v2980 {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.cc-review-layout-v2980 {
  grid-template-columns: clamp(260px, 22vw, 315px) minmax(560px, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
}

.cc-review-stage-shell-v2980,
.cc-review-stage-v2980,
.cc-review-stage-v2980 > .cc-review-student-card-v2980 {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* The student card and project content must be free to use the wide stage. */
.cc-review-stage-v2980 .cc-review-student-card-v2980 > *,
.cc-review-stage-v2980 .cc-review-student-card-v2980 section,
.cc-review-stage-v2980 .cc-review-student-card-v2980 article {
  max-width: 100% !important;
}

/* Keep grading controls usable instead of collapsing into narrow columns. */
.cc-review-stage-v2980 .cc-review-student-card-v2980 form,
.cc-review-stage-v2980 .cc-review-student-card-v2980 .grading-row,
.cc-review-stage-v2980 .cc-review-student-card-v2980 .submission-grade-row {
  min-width: 0 !important;
}

/* Premium stage toolbar: stronger hierarchy without taking excessive space. */
.cc-review-stage-toolbar-v2980 {
  padding: 12px 16px !important;
  min-height: 64px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ccrq-panel) 96%, transparent), color-mix(in srgb, var(--ccrq-panel-2) 92%, transparent)) !important;
  box-shadow: inset 0 -1px 0 var(--ccrq-line) !important;
}

.cc-review-stage-person-v2980 b {
  font-size: .96rem !important;
  letter-spacing: -.01em;
}

.cc-review-stage-person-v2980 small {
  font-size: .72rem !important;
}

/* Give the actual project comfortable room for code review. */
.cc-review-stage-v2980 {
  padding: 18px !important;
}

.cc-review-stage-v2980 details > pre,
.cc-review-stage-v2980 details pre {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: auto !important;
}

.cc-review-stage-v2980 details code,
.cc-review-stage-v2980 details pre {
  white-space: pre !important;
}

/* Subtle focus halo when moving to another student. */
.cc-review-stage-v2980 > .cc-review-student-card-v2980 {
  position: relative;
}
.cc-review-stage-v2980 > .cc-review-student-card-v2980::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(32,197,245,.16), 0 18px 52px rgba(32,197,245,.08);
  animation: ccReviewFocusHalo2981 .52s ease-out both;
}
@keyframes ccReviewFocusHalo2981 {
  0% { opacity: 0; transform: scale(.998); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

/* Wide desktop: slightly more compact queue, more room for source code. */
@media (min-width: 1280px) {
  .cc-review-layout-v2980 {
    grid-template-columns: 285px minmax(0, 1fr) !important;
  }
}

/* Tablet: keep both panes usable until the intentional mobile breakpoint. */
@media (max-width: 1080px) and (min-width: 821px) {
  .cc-review-layout-v2980 {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .cc-review-stage-v2980 {
    padding: 12px !important;
  }
}

/* Mobile remains single-stage + bottom-sheet queue. */
@media (max-width: 820px) {
  .cc-review-layout-v2980 {
    display: block !important;
    width: 100% !important;
  }
  .cc-review-stage-v2980 {
    padding: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-review-stage-v2980 > .cc-review-student-card-v2980::before {
    animation: none !important;
  }
}
