
/* ---------- Base ---------- */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(135deg, #0f2b23, #112831);
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: rgba(15, 43, 35, 0.95);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,255,159,0.2);
  position: relative;
  z-index: 1000;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-item {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-item:hover, .nav-item.active { color: #00ff9f; }
.language-selector {
  background: #1e4136;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.navbar-disclaimer {
  color: #bfead8;
  font-weight: 600;
  font-style: italic;
}

/* Menu button */
.menu-btn {
  background: none;
  border: none;
  color: #00ff9f;
  font-size: 1.6rem;
  cursor: pointer;
  margin-right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}
.menu-btn:hover { background: rgba(0,255,159,0.1); }

/* Dropdown links */
.nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px; left: 20px;
  background: rgba(20,40,35,0.95);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.nav-links.show { max-height: 300px; opacity: 1; }
.nav-links a {
  margin: 6px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active { color: #00ff9f; }

/* ---------- Trial Banner ---------- */
.trial-banner {
  display: flex;
  gap: 12px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,255,159,0.15);
  background: rgba(20, 40, 35, 0.6);
}
.pill {
  background: #ffc107;
  color: #111;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.pill.dark { background: #00ff9f; color: #0f2b23; }

/* ---------- Layout ---------- */
.wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  height: calc(100vh - 98px);
  padding: 16px;
  box-sizing: border-box;
}

/* Sidebar */
.sidebar {
  background: rgba(20, 40, 35, 0.9);
  border: 1px solid rgba(0,255,159,0.1);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 140, 0.1);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar h2 { margin: 0 0 8px; color: #00ff9f; font-size: 1.1rem; }
.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}
.session-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.session-list li:hover { background: rgba(0,255,159,0.08); }
.session-list li.active { background: rgba(0,255,159,0.14); }
.session-title {
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-actions button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.session-actions button:hover { color: #00ff9f; }

.new-session-btn {
  margin-top: 10px;
  background: #00ff9f;
  color: #0f2b23;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.new-session-btn:hover { background: #00d88c; }
.new-session-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Main Chat ---------- */
.main {
  background: rgba(20, 40, 35, 0.9);
  border: 1px solid rgba(0,255,159,0.1);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 140, 0.1);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.status { margin-bottom: 8px; color: #e6ffe6; }

/* Transcript */
.transcript {
  background: #0f2b23;
  border: 1px solid rgba(0,255,159,0.1);
  border-radius: 10px;
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #eafff4;
}
.transcript-placeholder { margin: 0; color: #bfead8; }
.transcript .msg {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.45;
}
.transcript .msg.user {
  align-self: flex-end;
  background: #e0f7e9;
  color: #222;
}
.transcript .msg.therapist {
  align-self: flex-start;
  background: #fff8dc;
  color: #222;
}

/* Input row */
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}
.input-row textarea {
  background: #0f2b23;
  color: #fff;
  border: 1px solid rgba(0,255,159,0.15);
  border-radius: 10px;
  padding: 10px;
  min-height: 60px;
  resize: vertical;
  outline: none;
}
.input-row button {
  background: #00ff9f;
  color: #0f2b23;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.input-row button:hover { background: #00d88c; }

/* ---------- Brand ---------- */
.brand { font-size: 1.3rem; font-weight: 700; color: #00ff9f; margin-right: 20px; letter-spacing: 1px; }
.logo-img { height: 32px; margin-right: 8px; vertical-align: middle; }
.brand-link { display: flex; align-items: center; text-decoration: none; margin-right: 20px; }
.brand-name { font-size: 1.2rem; font-weight: 700; color: #00ff9f; }
.brand-link:hover .brand-name { color: #00d88c; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .wrapper {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  body { overflow: auto; }
  .wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }
  .sidebar { order: 2; }
  .main { order: 1; min-height: 400px; }
  .trial-banner { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .navbar { flex-direction: column; align-items: flex-start; padding: 10px; }
  .nav-right { flex-wrap: wrap; gap: 8px; }
  .wrapper { padding: 10px; }
  .main { padding: 10px; }
  .sidebar { padding: 10px; }
  .transcript .msg { font-size: 0.85rem; }
  h1 { font-size: 1.2rem; }
}

