:root {
  --primary: #1b4d3e;
  --primary-dark: #12352b;
  --primary-light: #e8f3ef;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.brand-logo { text-decoration: none; }
.brand-title { display: block; font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.brand-subtitle { display: block; font-size: 0.7rem; color: var(--text-muted); }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a.active { color: var(--primary); font-weight: 600; }

/* LAYOUT */
.chat-app-container {
  display: flex;
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 280px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.btn-new-chat {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.sidebar-title { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 0.75rem; }
.chat-history-item { padding: 0.75rem; border-radius: 8px; background: var(--primary-light); display: flex; flex-direction: column; gap: 0.2rem; }
.chat-history-item strong { font-size: 0.85rem; color: var(--text-main); }
.chat-history-item small { font-size: 0.7rem; color: var(--text-muted); }

.chat-main-content {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.conservator-sub-header {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chat-hero { text-align: center; margin-bottom: 1.5rem; }
.chat-hero h2 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.chat-hero p { font-size: 0.85rem; color: var(--text-muted); }

/* BUBBLE CHAT */
.chat-messages-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.5;
  font-size: 0.9rem;
  word-break: break-word;
}

.chat-bubble-user {
  align-self: flex-end;
  background-color: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble-model {
  align-self: flex-start;
  background-color: #f0f4f8;
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border-color);
}

/* QUICK PROMPTS */
.quick-prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.15s, border-color 0.15s;
}

.prompt-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.prompt-card p { font-size: 0.8rem; color: var(--text-main); }

/* INPUT FORM */
.chat-input-wrapper {
  margin-top: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.chat-form { display: flex; gap: 0.5rem; }
.chat-form input { flex: 1; border: none; outline: none; padding: 0.75rem 1rem; font-size: 0.85rem; }
.btn-send { background: var(--primary); color: white; border: none; padding: 0.75rem 1.25rem; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-send:hover { background: var(--primary-dark); }
