/* styles.css — minimal, mobile-first chatbot UI */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  color: #0f172a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.chat-app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.chat-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.chat-header h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.chat-header p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.bubble.user {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.bubble.bot .specialty {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.bubble.typing {
  font-style: italic;
  color: #64748b;
}

.doctor-list {
  max-width: 92%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}
.doctor-heading {
  font-weight: 600;
  margin-bottom: 4px;
  color: #0f172a;
}
.doctor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.doctor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.doctor-info .doctor-meta {
  color: #475569;
  font-size: 0.82rem;
}
.doctor-info .doctor-fee {
  color: #0e7490;
  font-size: 0.82rem;
  font-weight: 600;
}
.book-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.book-btn:hover {
  background: #15803d;
}
.book-btn:disabled {
  background: #94a3b8;
  cursor: default;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.symptom-input {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
}
.symptom-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
button#send-btn {
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
button#send-btn:hover {
  background: #1d4ed8;
}
button#send-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.disclaimer {
  padding: 10px 16px 16px;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  background: #ffffff;
}

@media (max-width: 480px) {
  .chat-header h1 {
    font-size: 1.15rem;
  }
  .bubble {
    max-width: 90%;
    font-size: 0.92rem;
  }
}
