/* AI Patient Pre-Diagnosis Chat Widget - Styles */

:root {
  --primary: #0066cc;
  --primary-dark: #004999;
  --success: #2e7d32;
  --warning: #ffc107;
  --error: #dc3545;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --text: #333333;
  --muted: #666666;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--light-bg);
  color: var(--text);
}

.chat-container {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-size: 14px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.chat-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

#triage-level {
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

#triage-level.visible { opacity: 1; }

.chat-box {
  flex: 1;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  background: var(--white);
}

.chat-box::-webkit-scrollbar {
  width: 6px;
}

.chat-box::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.message {
  margin-bottom: 12px;
  padding: 8px 0;
}

.message strong {
  color: var(--primary);
}

.message.user-msg strong {
  color: var(--primary-dark);
}

.system-msg {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 10px 0;
}

.emergency-banner {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 6px;
  color: #856404;
  font-weight: 500;
  display: none;
}

.emergency-banner.hidden { display: none; }

.chat-input {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input input:focus {
  border-color: var(--primary);
}

.chat-input button {
  padding: 0 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input button:hover {
  background: var(--primary-dark);
}

.quick-replies {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.quick-replies button {
  background: #f0f0f0;
  color: var(--text);
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
}

.quick-replies button:hover {
  background: #e0e0e0;
}

/* Medical disclaimer at bottom */
.disclaimer {
  padding: 12px 20px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid #eee;
  background: var(--white);
  text-align: center;
}