body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #eee;
}

.page {
  display: none;
  height: 100vh;
}

.active {
  display: flex;
  flex-direction: column;
}

.login-center {
  margin: auto;
  text-align: center;
}

.btn {
  background: #00c2ff;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.svg-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #121212;
  border-bottom: 1px solid #333;
}

.new-chat-btn {
  background: none;
  border: none;
  color: #00c2ff;
  font-weight: bold;
  cursor: pointer;
}

#menuToggle {
  background: none;
  border: none;
  cursor: pointer;
}

#historyPanel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #1a1a1a;
  padding: 1rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 9;
}

#historyPanel.active {
  right: 0;
}

.chat-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.message {
  background: #1e1e1e;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.chat-input-area {
  border-top: 1px solid #333;
  padding: 1rem;
  background: #121212;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.input-wrapper {
  position: relative;
  max-width: 600px;
  margin: auto;
}

textarea {
  width: 100%;
  resize: none;
  overflow: hidden;
  min-height: 40px;
  max-height: 200px;
  padding: 0.5rem 3rem 0.5rem 0.5rem;
  border-radius: 6px;
  border: none;
  background: #1e1e1e;
  color: #eee;
  font-size: 1rem;
  box-sizing: border-box;
}

.send-btn {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.send-btn svg {
  width: 24px;
  height: 24px;
  fill: #00c2ff;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

.history-item {
  cursor: pointer;
  color: #00c2ff;
  margin-bottom: 0.5rem;
}
