
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1e1e1e;
  color: #f1f1f1;
}
.container {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 240px;
  background-color: #2a2a2a;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.sidebar h2 {
  margin-top: 0;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
}
.sidebar li {
  padding: 8px;
  background: #3a3a3a;
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: pointer;
}
.sidebar li.active {
  background: #10a37f;
}
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
}
.chat-header {
  padding: 1rem;
  background: #2d2d2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.api-key-section {
  padding: 1rem;
  background: #222;
  display: flex;
  gap: 10px;
}
.api-key-section input {
  flex: 1;
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
}
.chat-window {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  max-width: 75%;
}
.user {
  align-self: flex-end;
  background: #10a37f;
  color: white;
}
.assistant {
  align-self: flex-start;
  background: #343541;
}
#chat-form {
  display: flex;
  padding: 1rem;
  background: #2d2d2d;
  gap: 10px;
}
#chat-form textarea {
  flex: 1;
  resize: none;
  border-radius: 6px;
  border: none;
  padding: 10px;
  background: #3a3a3a;
  color: white;
}
#chat-form button {
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  background-color: #10a37f;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
