/* ✅ styles.css */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

body.light-mode {
  background-color: #ffffff;
  color: #1a1a1a;
}

.chat-container {
  width: 100%;
  max-width: 600px;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

body.light-mode .chat-container {
  background: #f8f8f8;
}

.chat-container h1 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
  color: #00bfa5;
}

.chat-box {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  background: #2c2c2c;
  border-radius: 6px;
  height: 400px;
  margin-bottom: 10px;
  scroll-behavior: smooth;
}

body.light-mode .chat-box {
  background: #f1f1f1;
}

.message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 90%;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message.user {
  background-color: #00796b;
  color: #fff;
  align-self: flex-end;
  text-align: right;
}

.message.assistant {
  background-color: #333;
  color: #e0e0e0;
  align-self: flex-start;
  text-align: left;
}

body.light-mode .message.user {
  background-color: #e0f7fa;
  color: #004d40;
}

body.light-mode .message.assistant {
  background-color: #e6e6e6;
  color: #333;
}

.message.assistant h1,
.message.assistant h2,
.message.assistant h3 {
  color: #00bfa5;
}

.message.assistant code {
  background: #1f1f1f;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
  color: #ffcc80;
}

.message.assistant pre {
  background: #1f1f1f;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: monospace;
  color: #ffcc80;
}

.chat-form {
  display: flex;
}

.chat-form input {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.chat-form button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background-color: #00bfa5;
  color: #fff;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.3s ease;
}

.chat-form button:hover {
  background-color: #008c7a;
}

/* 🆕 Support CTA Button */
.support-container {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}

.support-btn {
  margin-top: 10px;
  padding: 10px 14px;
  background-color: #4A90E2;
  color: white;
  font-size: 14px;
  border: 1px solid #357ac9;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.support-btn:hover {
  background-color: #357ac9;
}

body.dark-mode .support-btn {
  background-color: #007acc;
  border-color: #005fa3;
}

body.dark-mode .support-btn:hover {
  background-color: #005fa3;
}