:root {
  --primary: #1EFCF4;
  --primary-light: #9ffef8;
  --text-dark: #1c1c1c;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --border-light: #c9fdfc;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ---------- CHATBOX ---------- */
#chatSection {
  width: 380px;
  max-width: 90vw;
  height: 540px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: all 0.4s ease;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#chatSection.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- LOGO AREA ---------- */
#logoArea {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

#logoArea img {
  max-width: 150px;
  height: auto;
}

/* ---------- TITLE BAR ---------- */
#chatTitle {
  background: linear-gradient(135deg, var(--primary), #b3fffb);
  color: var(--text-dark);
  font-weight: 700;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(30, 252, 244, 0.2);
}

/* ---------- CHAT AREA ---------- */
#chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
  scroll-behavior: smooth;
}

#chatbox::-webkit-scrollbar {
  width: 12px;
}

#chatbox::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ---------- MESSAGES ---------- */
.message {
  margin: 10px 0;
  padding: 10px 16px;
  border-radius: 20px;
  line-height: 1.5;
  max-width: 80%;
  font-size: 15px;
  word-wrap: break-word;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.question {
  background: linear-gradient(135deg, var(--primary), #b3fffb);
  color: var(--text-dark);
  text-align: right;
  margin-left: auto;
  border-bottom-right-radius: 0;
  box-shadow: 0 3px 8px rgba(30, 252, 244, 0.3);
}

.answer {
  background: var(--bg-white);
  color: var(--text-dark);
  text-align: left;
  margin-right: auto;
  border-bottom-left-radius: 0;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ---------- BUTTONS ---------- */
#questionButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-white);
}

button.question-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-dark);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(30, 252, 244, 0.3);
}

button.question-btn:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(30, 252, 244, 0.4);
}

/* ---------- INPUT AREA ---------- */
#inputArea {
  display: flex;
  gap: 6px;
  padding: 10px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  align-items: center;
}

#userInput {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background: var(--bg-light);
  color: var(--text-dark);
}

#userInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(30, 252, 244, 0.4);
}

#sendBtn {
  background: var(--primary);
  color: var(--text-dark);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(30, 252, 244, 0.3);
}

#sendBtn:hover {
  background: #9ffef8;
  transform: scale(1.1);
}

/* ---------- TOGGLE BUTTON ---------- */
#chatbotToggleBtn {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #9ffef8);
  border-radius: 45%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(30, 252, 244, 0.5);
  color: var(--text-dark);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: all 0.3s ease;
}

#chatbotToggleBtn:hover {
  background: #c1fffb;
  transform: scale(1.1);
}
