:root {
  --primary-color: linear-gradient(135deg, #5f4dff, #6e7aff);
  --primary-color-solid: #5f4dff;
  --primary-color-dark: #3d3dff;
  --user-bubble-color: #5f4dff;
  --accent-color: #ff7043;
  --text-dark: #1a1a1f;
  --text-muted: #6b6b82;
  --bg-light: #f4f6fb;
  --border-radius: 18px;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease-in-out;
}

body {
  font-family: 'Inter', Roboto, 'Segoe UI', sans-serif;
  background-color: transparent;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  line-height: 1.6;
}

#chat-container {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 360px;
  height: 520px;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform-origin: bottom;
  transition: var(--transition);
}

.hidden {
  transform: scale(0);
  opacity: 0;
}

.genie-effect {
  animation: genie 0.4s forwards ease-out;
}

@keyframes genie {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#header {
  background: var(--primary-color);
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

#header-text {
  display: flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

#lottie-animation {
  width: 65px;
  margin-right: 6px;
}

#messages {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
}
.message a {
  color: var(--primary-color-solid);
  text-decoration: none;        /* No underline */
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
  border-bottom: none;          /* Explicitly remove border underline */
  box-shadow: none;             /* Remove any default shadows */
}

.message a:hover,
.message a:focus {
  color: var(--primary-color-dark);
  outline: none;
  text-decoration: none;        /* Keep no underline on hover/focus */
}
.message {
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 18px;
  max-width: 80%;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.user-message {
  align-self: flex-end;
  background: var(--primary-color-solid);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  box-shadow:
    0 1px 4px rgba(95, 77, 255, 0.25),   /* lighter purple shadow */
    0 0 6px 2px rgba(95, 77, 255, 0.12);  /* very subtle glow */
  font-weight: 500;
  font-size: 15px;
  transition: box-shadow 0.3s ease;
}
.bot-message {
  align-self: flex-start;
  background-color: #e9efff; /* ultra light pastel blue */
  color: #222233;            /* keep dark text for contrast */
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  box-shadow:
    0 2px 8px rgba(50, 50, 120, 0.12),      /* existing subtle shadow */
    0 0 10px 3px rgba(186, 200, 255, 0.25); /* gentle blue glow highlight */
  font-weight: 500;
  font-size: 15px;
  transition: box-shadow 0.3s ease;
}






#input-area {
  display: flex;
  padding: 12px;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
}

#user_input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid #d1d5db;
  outline: none;
  font-size: 14px;
  transition: border 0.2s;
}

#user_input:focus {
  border-color: var(--primary-color-solid);
}

#send_button {
  background: var(--primary-color);
  background-image: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  margin-left: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

#send_button:hover {
  background: var(--primary-color-dark);
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  font-size: 26px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.floating-btn:hover {
  background: var(--primary-color-dark);
}

#footer-text {
  font-size: 12px;
  color: #7a7a8a;
  text-align: center;
  padding: 6px 0;
  border-top: 1px solid #e3e3ea;
}

.highlighted {
  color: #4a5bff;
  font-weight: 700;
  font-style: italic;
}

/* Typing Dots */
#thinking-dots {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #888;
}

#thinking-dots .dot {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  border-radius: 50%;
  background-color: #999;
  animation: dots 1.4s infinite both;
}

#thinking-dots .dot:nth-child(1) { animation-delay: 0s; }
#thinking-dots .dot:nth-child(2) { animation-delay: 0.2s; }
#thinking-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
  0%, 20%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Question Options */
.options-container {
  max-width: 480px;
  margin: 40px auto;
  padding: 0;
}

.options-header {
  text-align: center;
  margin-bottom: 28px;
}

.options-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.options-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-option {
  background-color: #fff;
  color: var(--primary-color-solid);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 1px solid rgba(58, 75, 255, 0.15);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.question-option:hover {
  background-color: #f4f6ff;
  transform: translateY(-1px);
}

.question-option:active {
  transform: translateY(0);
}

.yes-no-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.option-btn {
  background: var(--primary-color-solid);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.option-btn:hover {
  background-color: var(--primary-color-dark);
}

.disabled-btn {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
