/* Teacher dashboard (class pages). Builds on home.css + content.css. */
.tc-page { max-width: 880px; }
.tc-page h1 { margin-bottom: 12px; }
.tc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tc-points { list-style: none; color: #c2d6ef; line-height: 1.6; margin: 14px 0 22px; font-size: 15px; }
.tc-points li { margin: 6px 0; }

.tc-card {
  border: 1px solid rgba(0,240,255,.25); background: rgba(0,240,255,.03);
  padding: 18px 20px; margin: 16px 0;
}
.tc-card h2 { color: var(--gold); font-size: 20px; letter-spacing: 1px; margin-bottom: 6px; }
.tc-card h3 { color: var(--neon); font-size: 17px; letter-spacing: 1px; margin-bottom: 10px; }
.tc-card label { display: block; color: #eaf3ff; font-weight: bold; letter-spacing: .5px; margin: 16px 0 6px; font-size: 14px; }
.tc-card label:first-child { margin-top: 0; }
.tc-opt { color: var(--dim); font-weight: normal; }

.tc-page input:not([type=checkbox]):not([type=radio]), .tc-page textarea, .tc-page select {
  width: 100%; background: #0a0d16; color: #eaf3ff; border: 1px solid rgba(0,240,255,.3);
  font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 0;
}
.tc-page textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.tc-page input:focus, .tc-page textarea:focus, .tc-page select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 10px rgba(0,240,255,.3); }
#in-code { letter-spacing: 6px; font-size: 22px; max-width: 220px; }

.tc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tc-row > input { flex: 1 1 220px; }
.tc-end { justify-content: flex-end; margin-top: 16px; }
.tc-end .tc-msg { margin-right: auto; }

.tc-btn {
  display: inline-block; background: transparent; color: var(--neon); border: 1px solid var(--neon);
  font: inherit; font-size: 13px; font-weight: bold; letter-spacing: 1.5px; padding: 9px 14px;
  cursor: pointer; text-align: center; white-space: nowrap; transition: all .12s;
}
.tc-btn:hover { background: rgba(0,240,255,.12); box-shadow: 0 0 12px rgba(0,240,255,.3); }
.tc-btn:disabled { opacity: .5; cursor: wait; }
.tc-primary { color: var(--gold); border-color: var(--gold); border-width: 2px; }
.tc-primary:hover { background: var(--gold); color: #05060a; box-shadow: 0 0 18px rgba(255,207,58,.5); }
.tc-danger { color: #ff6b8a; border-color: rgba(255,107,138,.6); }
.tc-danger:hover { background: rgba(255,107,138,.12); box-shadow: none; }
.tc-wide { display: block; width: 100%; margin-top: 10px; }

.tc-msg { font-size: 14px; min-height: 1.2em; margin-top: 8px; }
.tc-msg.ok, .tc-small.ok { color: var(--green); }
.tc-msg.err, .tc-small.err { color: #ff6b8a; }
.tc-small { color: var(--dim); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.tc-small a, .tc-back { color: var(--neon); }
.tc-back { display: inline-block; margin: 18px 0 0; font-size: 14px; }
.tc-count { text-align: right; }

/* page link field */
.tc-slug { display: flex; align-items: stretch; border: 1px solid rgba(0,240,255,.3); background: #0a0d16; }
.tc-slug span { color: var(--dim); padding: 10px 0 10px 12px; font-size: 15px; white-space: nowrap; align-self: center; }
.tc-slug input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; min-width: 0; }

/* game picker */
.tc-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tc-game { border: 1px solid rgba(120,140,170,.3); background: rgba(255,255,255,.015); }
.tc-game.on { border-color: var(--gold); background: rgba(255,207,58,.05); }
.tc-card .tc-game-head { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; cursor: pointer; font-weight: normal; }
.tc-game-head input { margin-top: 4px; accent-color: #ffcf3a; width: 18px; height: 18px; flex: none; }
.tc-game-ico { font-size: 22px; line-height: 1; }
.tc-game-head b { display: block; color: #eaf3ff; letter-spacing: .5px; }
.tc-game-head small { display: block; color: var(--dim); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.tc-game-opts { display: none; padding: 0 12px 12px 40px; }
.tc-game.on .tc-game-opts { display: block; }
.tc-card .tc-opt-row { margin: 6px 0 0; font-size: 12px; color: var(--dim); font-weight: normal; letter-spacing: 1px; }
.tc-opt-row select { font-size: 14px; padding: 6px 8px; margin-top: 3px; }

/* class list */
.tc-class { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.tc-class h3 { color: var(--gold); margin-bottom: 4px; font-size: 19px; word-break: break-word; }
.tc-link { color: var(--neon); font-size: 14px; word-break: break-all; }
.tc-class-nums { text-align: right; color: var(--dim); font-size: 12px; line-height: 1.6; }
.tc-class-nums b { color: #eaf3ff; font-size: 18px; margin-left: 8px; }
.tc-class-nums span { display: block; }
.tc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tc-flag { font-size: 11px; color: #ff6b8a; border: 1px solid #ff6b8a; padding: 2px 6px; letter-spacing: 1px; vertical-align: middle; }
.tc-empty { text-align: center; padding: 30px 20px; }
.tc-empty p { margin-bottom: 8px; }
.tc-deleted { margin: 10px 0 0; color: var(--dim); font-size: 14px; }
.tc-deleted summary { cursor: pointer; padding: 6px 0; }
.tc-gone { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }

/* suggestions */
.tc-suggest { border-color: rgba(255,207,58,.35); background: rgba(255,207,58,.03); margin-top: 36px; }
.tc-kinds { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 10px; }
.tc-card .tc-kinds label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: normal; color: #c2d6ef; cursor: pointer; }
.tc-kinds input { accent-color: #ffcf3a; }

/* stats */
.tc-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.tc-num { border: 1px solid rgba(0,240,255,.25); padding: 14px; text-align: center; }
.tc-num b { display: block; color: var(--gold); font-size: 28px; text-shadow: 0 0 8px rgba(255,207,58,.4); }
.tc-num span { color: var(--dim); font-size: 12px; letter-spacing: 1px; }
.tc-legend { font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.tc-legend .lv { color: var(--neon); } .tc-legend .lp { color: var(--gold); margin-left: 12px; }
.tc-chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-bottom: 18px; }
.tc-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; position: relative; }
.tc-bar i { flex: 1; min-height: 1px; }
.tc-bar .bv { background: var(--neon); opacity: .7; }
.tc-bar .bp { background: var(--gold); }
.tc-bar small { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--dim); white-space: nowrap; }
.tc-bar:nth-child(even) small { visibility: hidden; }
.tc-grow { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.tc-grow b { color: var(--gold); }
.tc-grow small { color: var(--dim); font-weight: normal; }
.tc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tc-pad { margin: -6px 0 6px; }

/* share */
.tc-share { display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 16px; align-items: start; }
.tc-qr-box { background: #fff; padding: 0; line-height: 0; }
.tc-qr-box canvas { width: 100%; height: auto; image-rendering: pixelated; }
.tc-share-side label { display: block; color: #eaf3ff; font-weight: bold; margin-bottom: 6px; }
.tc-share-side .tc-row { margin-bottom: 8px; }

#tc-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px); z-index: 9999;
  background: rgba(5,6,10,.96); color: var(--green); border: 1px solid var(--green);
  padding: 11px 20px; font-size: 14px; letter-spacing: 1px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; box-shadow: 0 0 22px rgba(57,255,136,.3);
}
#tc-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#tc-toast a { color: var(--gold); margin-left: 10px; font-weight: bold; }

@media (max-width: 680px) {
  .tc-games { grid-template-columns: 1fr; }
  .tc-nums { grid-template-columns: repeat(2, 1fr); }
  .tc-share { grid-template-columns: 1fr; }
  .tc-two { grid-template-columns: 1fr; }
  .tc-qr-box { max-width: 300px; margin: 0 auto; }
  .tc-class { grid-template-columns: 1fr; }
  .tc-class-nums { text-align: left; }
  .tc-class-nums span { display: inline; margin-left: 8px; }
  .tc-slug span { font-size: 13px; }
}

/* Browser autofill paints inputs light blue/white; keep them dark and readable. */
.tc-page input:-webkit-autofill, .tc-page input:-webkit-autofill:hover, .tc-page input:-webkit-autofill:focus,
.tc-page textarea:-webkit-autofill, .tc-page select:-webkit-autofill {
  -webkit-text-fill-color: #eaf3ff; caret-color: #eaf3ff;
  -webkit-box-shadow: 0 0 0 1000px #0a0d16 inset; box-shadow: 0 0 0 1000px #0a0d16 inset;
  transition: background-color 9999s ease-out 0s;
}
.tc-page input:autofill { -webkit-text-fill-color: #eaf3ff; box-shadow: 0 0 0 1000px #0a0d16 inset; }
