/*Cosmetics for the page*/
/* Page background and base text */
body {
  background: #f0fdf4;
  color: #14532d;
}

/* Disable Night Mode option entirely */
.quarto-color-scheme-toggle {
  display: none !important;
}

/* Dashboard spacing */
.quarto-dashboard .dashboard-page {
  padding-top: 0.75rem;
}
/* Navbar - deep green */
.navbar {
  background: linear-gradient(90deg, #166534, #16a34a) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.navbar a,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-title {
  color: #ffffff !important;
}
/* Cards - white with green tint border */
.card,
.quarto-dashboard .card {
  background: #ffffff !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
/* Card titles */
.card-title,
.quarto-dashboard .card-title {
  color: #166534 !important;
  font-weight: 700;
}
/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
/* Metric tiles */
.metric-tile {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.metric-label {
  color: #4b7a5a !important;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.metric-value {
  color: #14532d !important;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.metric-sub {
  color: #4b7a5a !important;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
/* Assistant shell */
.assistant-shell {
  display: flex;
  flex-direction: column;
  min-height: 72vh;
  gap: 1rem;
}
.assistant-intro {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1rem;
}
.assistant-title {
  color: #14532d;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.assistant-subtitle {
  color: #4b7a5a;
  font-size: 0.95rem;
}
.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.suggestion-chip {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}
/* Chat window */
.chat-window {
  flex: 1;
  min-height: 360px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1rem;
  overflow-y: auto;
}
.message {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  line-height: 1.45;
}
.assistant-message {
  background: #dcfce7;
  color: #14532d;
}
.user-message {
  background: #f0fdf4;
  color: #166534;
}
/* Chat input */
.chat-input-row {
  display: flex;
  gap: 0.75rem;
}
.chat-input-row input {
  flex: 1;
  background: #ffffff;
  color: #14532d;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}
.chat-input-row input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 0.15rem rgba(22, 163, 74, 0.18);
}
.chat-input-row button {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
}
.chat-input-row button:hover {
  background: #166534;
}
.assistant-note {
  color: #4b7a5a;
  font-size: 0.85rem;
}
/* Responsive */
@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .chat-input-row {
    flex-direction: column;
  }
}
