@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");

:root {
  /* rgb(33,60,159) — pulled from stenbergcollege.com computed styles, not guessed */
  --navy: #213c9f;
  --navy-dark: #182c78;
  --white: #ffffff;
  --gray-bg: #faf9f7;
  --gray-border: #e2e5ea;
  --text: #1c2430;
  --text-muted: #6b7280;
  --bubble-user: var(--navy);
  --bubble-assistant: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--gray-bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  height: 28px;
  width: 28px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cohort-badge {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
}

.pill-btn {
  /* named for the "New Chat"/CTA role, not literally pill-shaped —
     the live site's real buttons use a 4-8px radius, not a full pill */
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.pill-btn:hover {
  opacity: 0.9;
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-shell {
  max-width: 760px;
  margin: 0 auto;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem 0.25rem 1rem;
}

.msg {
  max-width: 78%;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg.user {
  align-self: flex-end;
  background: var(--bubble-user);
  color: var(--white);
  border-bottom-right-radius: 0.25rem;
}

.msg.assistant {
  align-self: flex-start;
  background: var(--bubble-assistant);
  border: 1px solid var(--gray-border);
  border-bottom-left-radius: 0.25rem;
}

.msg.system-note {
  align-self: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: transparent;
}

.composer {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 1.25rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
}

.composer textarea {
  flex: 1;
  border: none;
  resize: none;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  max-height: 160px;
  padding: 0.4rem 0;
}

@media (max-width: 640px) {
  .chat-shell {
    padding: 0.5rem;
  }
  .msg {
    max-width: 90%;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-box {
  background: var(--white);
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
}
.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
#secure-info-body {
  padding: 1.1rem;
}
#ticket-body {
  padding: 1.1rem;
}
.modal-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0;
}
.modal-error {
  color: #b3261e;
  font-size: 0.85rem;
}
#secure-info-form {
  display: flex;
  gap: 0.6rem;
}
#secure-info-code {
  flex: 1;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}
.cred-card {
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.75rem;
}
.cred-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.cred-value-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cred-value {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}
.copy-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.cred-notes {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.modal-overlay[hidden] {
  display: none;
}
.schedule-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.schedule-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.range-tabs {
  display: flex;
  gap: 0.5rem;
}
.range-tab {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.range-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.schedule-heading {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text);
}
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.schedule-row {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.schedule-date {
  min-width: 100px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}
.schedule-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.schedule-room {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.schedule-detail {
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.schedule-empty {
  color: var(--text-muted);
  padding: 2rem 0;
  text-align: center;
}
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .schedule-row { break-inside: avoid; border: 1px solid #ccc; }
}
.ticket-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ticket-suggestion-btn {
  text-align: left;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.ticket-suggestion-btn:hover {
  background: var(--white);
  border-color: var(--navy);
}
.ticket-textarea {
  width: 100%;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
#ticket-body label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
#ticket-body input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.45rem;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-family: inherit;
}
