/* General layout */
body {
  /* background: linear-gradient(to right, #f0f4f8, #e6ebf2); */
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* Main wrapper */
.ai-therapy-wrapper {
  max-width: 700px;
  margin: 60px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
}

/* Header */
.therapy-header {
  text-align: center;
  padding-bottom: 20px;
}

.therapy-header h1 {
  margin-bottom: 10px;
  font-size: 28px;
  color: #2a2f45;
}

.therapy-header p {
  color: #6c7a89;
  font-size: 16px;
}

/* Chat box */
.therapy-chat-box {
  flex-grow: 1;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: #f9fbfd;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat bubbles */
.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}

.user-bubble {
  align-self: flex-end;
  background: #dbeafe;
  color: #1e3a8a;
  border-bottom-right-radius: 4px;
}

.ai-bubble {
  align-self: flex-start;
  background: #e0f2f1;
  color: #004d40;
  border-bottom-left-radius: 4px;
}

/* Input area */
.therapy-input-area {
  display: flex;
  gap: 12px;
  align-items: center;
}

.therapy-input-area input[type="text"] {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  outline: none;
}

.therapy-input-area button {
  background: #000000;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

.therapy-input-area button:hover {
  background: #000000;
  font-size: 16px;
}

.default-message {
  text-align: center;
  color: #0c0c0c;
  font-size: 15px;
  padding: 40px 20px;
  line-height: 1.6;
  background-color: #f1f5f9;
  border-radius: 12px;
}


.loader-bubble {
  display: inline-block;
  padding: 10px 15px;
  background: #e0e0e0;
  border-radius: 15px;
  font-style: italic;
  color: #555;
  margin: 10px 0;
  animation: pulse 1.5s infinite ease-in-out;
  max-width: 80%;
  align-self: flex-start;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}



