/* Central GCT — inbox admin + formulários aluno */
#gct-inbox-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120000;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  color: #e8eef5;
  background: rgba(20, 28, 38, 0.96);
  border: 1px solid rgba(255, 80, 80, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  max-width: 320px;
}
#gct-inbox-toast.on { opacity: 1; }
#gct-inbox-toast.gct-inbox-toast--ok { border-color: rgba(80, 200, 140, 0.5); }

#gct-inbox-err-ov {
  position: fixed;
  inset: 0;
  z-index: 119000;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#gct-inbox-err-ov.on { display: flex; }

.gct-inbox-modal {
  width: min(480px, 100%);
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}
.gct-inbox-modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #8899aa;
  cursor: pointer;
  font-size: 16px;
}
.gct-inbox-modal-hd { font-size: 16px; font-weight: 600; color: #e8eef5; margin-bottom: 6px; }
.gct-inbox-modal-sub { font-size: 12px; color: #8899aa; margin: 0 0 14px; line-height: 1.45; }
.gct-inbox-input,
.gct-inbox-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #dde8f0;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  font-family: inherit;
}
.gct-inbox-textarea { min-height: 120px; resize: vertical; }
.gct-inbox-modal-err { color: #ff7070; font-size: 12px; min-height: 18px; }
.gct-inbox-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.gct-inbox-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c8d4e0;
  cursor: pointer;
  font-size: 12px;
}
.gct-inbox-btn--primary {
  background: rgba(60, 140, 220, 0.25);
  border-color: rgba(80, 160, 240, 0.4);
}

/* Student duvidas forms */
.st-inbox-forms { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.st-inbox-form-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
}
.st-inbox-form-title { font-size: 13px; font-weight: 600; color: #dce8f4; margin-bottom: 4px; }
.st-inbox-form-hint { font-size: 11px; color: #7a8a9a; margin-bottom: 10px; }
.st-inbox-form input[type="text"],
.st-inbox-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #dde8f0;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: inherit;
}
.st-inbox-form textarea { min-height: 72px; resize: vertical; }
.st-inbox-form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-inbox-form-err { font-size: 11px; color: #ff7070; flex: 1; }
.st-inbox-send-note {
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid rgba(100, 180, 255, 0.35);
  background: rgba(60, 120, 200, 0.15);
  color: #a8cce8;
  cursor: pointer;
}
.st-inbox-report-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 120, 80, 0.35);
  background: rgba(255, 80, 40, 0.06);
  color: #ffb090;
  cursor: pointer;
  font-size: 12px;
}

/* Admin central */
.gct-inbox-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.gct-inbox-hd-actions { display: flex; align-items: center; gap: 12px; }
.gct-inbox-filter { font-size: 12px; color: #8899aa; cursor: pointer; }
.gct-inbox-warn { padding: 20px; color: #8899aa; }
.gct-inbox-alert { padding: 10px 14px; margin-bottom: 12px; background: rgba(255, 80, 80, 0.1); border-radius: 6px; color: #ff9090; font-size: 12px; }
.gct-inbox-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gct-inbox-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 72px;
}
.gct-inbox-stat-n { display: block; font-size: 18px; font-weight: 600; color: #e0eaf4; }
.gct-inbox-stat-l { font-size: 10px; color: #788898; text-transform: uppercase; letter-spacing: 0.04em; }
.gct-inbox-stat--unread .gct-inbox-stat-n { color: #ffb060; }
.gct-inbox-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.gct-inbox-tab {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #9aabbb;
  cursor: pointer;
  font-size: 12px;
}
.gct-inbox-tab.active { background: rgba(60, 140, 220, 0.2); border-color: rgba(80, 160, 240, 0.35); color: #dce8f4; }
.gct-inbox-tab-n { opacity: 0.7; font-size: 11px; }
.gct-inbox-split {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 12px;
  min-height: 420px;
  flex: 1;
}
.gct-inbox-list {
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.gct-inbox-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.gct-inbox-row:hover { background: rgba(255, 255, 255, 0.03); }
.gct-inbox-row.active { background: rgba(60, 140, 220, 0.12); }
.gct-inbox-row.unread .gct-inbox-row-who { color: #ffb060; }
.gct-inbox-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.gct-inbox-row-who { font-weight: 600; color: #c8d8e8; }
.gct-inbox-row-time { color: #667788; }
.gct-inbox-row-preview { display: block; font-size: 12px; color: #8899aa; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gct-inbox-row-status { font-size: 10px; color: #6a8a6a; text-transform: uppercase; }
.gct-inbox-empty { padding: 24px; color: #667788; font-size: 13px; text-align: center; }
.gct-inbox-detail-pane {
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  padding: 16px;
}
.gct-inbox-detail-empty { padding: 24px; color: #667788; }
.gct-inbox-detail-meta { font-size: 11px; color: #788898; margin-top: 4px; }
.gct-inbox-ctx { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.gct-inbox-ctx span { font-size: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: #8899aa; }
.gct-inbox-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
  color: #d0dce8;
  margin: 12px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}
.gct-inbox-detail-actions { display: flex; gap: 8px; margin: 12px 0; }
.gct-inbox-reply-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.gct-inbox-reply-label { font-size: 11px; color: #788898; margin-bottom: 8px; }
.gct-inbox-reply-ta {
  width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #dde8f0;
  padding: 10px;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: inherit;
}
.gct-inbox-replies { margin-top: 12px; }
.gct-inbox-reply { margin-bottom: 10px; padding: 10px; background: rgba(60, 140, 80, 0.08); border-radius: 6px; }
.gct-inbox-reply-meta { font-size: 10px; color: #6a9870; }
.gct-inbox-reply-text { font-size: 12px; color: #c8e0cc; margin-top: 4px; white-space: pre-wrap; }
.gct-inbox-foot { margin-top: 12px; font-size: 11px; color: #556677; font-style: italic; }

#view-admin .ad-panel[data-ad-panel="central"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (max-width: 900px) {
  .gct-inbox-split { grid-template-columns: 1fr; }
}
