/* ---------- PAGE RESET ---------- */
body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2B4C5E;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

#quarto-content > * {
  padding: 0 !important;
  margin: 0 !important;
}

main.content {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ---------- HEADER ---------- */
.header-section {
  background: #2B4C5E;
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  position: relative;
}

.header-section h1 {
  color: #ffffff !important;
  margin: 0;
  font-weight: 300;
  font-size: 2rem;
  border-bottom: none;
}

.header-section p {
  margin: 6px 0;
  font-size: 15px;
  opacity: 0.9;
}

.header-note {
  margin: 6px 0 0 0 !important;
  font-size: 12px !important;
  opacity: 0.7;
}

.header-note a {
  color: #F5B800 !important;
  text-decoration: underline;
}

.header-content {
  text-align: center;
}

.github-link {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 24px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.github-link:hover {
  opacity: 1 !important;
  color: #F5B800 !important;
  text-decoration: none;
}

/* ---------- APP LAYOUT ---------- */
.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 140px);
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- CHAT SIDEBAR (INACTIVE STATE) ---------- */
.chat-sidebar {
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.inactive-notice {
  background: #f8f9fa;
  border: 2px dashed #8FB339;
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  margin-top: 20px;
}

.inactive-notice h2 {
  color: #2B4C5E !important;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0 0 20px 0;
  border-bottom: none;
}

.inactive-big-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #B8860B;
  line-height: 1.3;
  padding: 18px 10px;
  margin: 10px 0 20px 0;
  background: #fff8e1;
  border-radius: 8px;
  border: 1px solid #F5B800;
}

.inactive-explanation {
  font-size: 1rem;
  color: #2B4C5E;
  line-height: 1.6;
  text-align: left;
  margin: 18px 0;
}

.inactive-explanation strong {
  color: #2B4C5E;
}

.inactive-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 16px 0;
}

.inactive-actions a {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-conference {
  background-color: #8FB339;
  border: 1px solid #8FB339;
  color: #ffffff !important;
}

.btn-conference:hover {
  background-color: #7A9A2E;
  border-color: #7A9A2E;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid #2B4C5E;
  color: #2B4C5E !important;
}

.btn-secondary:hover {
  background-color: #2B4C5E;
  color: #ffffff !important;
}

.inactive-footnote {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-top: 14px;
}

/* ---------- MAIN PANEL ---------- */
.main-panel {
  padding: 20px;
  background-color: white;
  min-width: 0;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.table-header h3 {
  margin: 0;
  color: #2B4C5E;
  font-weight: 600;
  border-bottom: none;
}

.table-header-left p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 14px;
}

.stats-box {
  background: #A8C6C4;
  color: #2B4C5E;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  min-width: 180px;
}

/* ---------- REACTABLE CELLS ---------- */
.day-thursday { color: #8FB339; font-weight: 600; white-space: nowrap; }
.day-friday   { color: #F5B800; font-weight: 600; white-space: nowrap; }
.day-saturday { color: #4A90D9; font-weight: 600; white-space: nowrap; }
.day-sunday   { color: #9B59B6; font-weight: 600; white-space: nowrap; }

.cell-title    { font-weight: 600; color: #2B4C5E; white-space: normal; line-height: 1.4; }
.cell-speakers { font-size: 13px; color: #555; white-space: normal; line-height: 1.3; }
.cell-room     { font-size: 14px; color: #666; }
.cell-skill    { font-size: 13px; color: #666; }
.cell-track    { color: #666; }
.cell-time     { font-size: 14px; }

/* ---------- FOOTER ---------- */
.app-footer {
  text-align: right;
  padding: 8px 20px;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #f0f0f0;
}

.app-footer a {
  color: #888;
}
