/* Medical Chatbot - Floating Widget */
.chat-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0066cc;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
}
.chat-button svg {
  color: white;
  width: 28px;
  height: 28px;
}
.chat-button:hover {
  background: #004d99;
  transform: scale(1.05);
}
.chat-button:active {
  transform: scale(0.95);
}
.chat-button.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}
@media (max-width: 768px) {
  .chat-button {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

.chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 48px);
  height: 600px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}
.chat-container.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}
@media (max-width: 768px) {
  .chat-container {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 80vh;
    max-height: 80vh;
    border-radius: 12px 12px 0 0;
  }
}

.chat-header {
  background: #0066cc;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: wheat;
}
.chat-header .chat-status {
  margin: 4px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  color: white;
}
.chat-header .chat-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  margin-right: 6px;
}
.chat-header .chat-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-header .chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-header .chat-close:active {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.chat-message {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.chat-message .message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-message .message-content p {
  margin: 0;
  color: #1a1a1a;
}
.chat-message.user-message {
  justify-content: flex-end;
}
.chat-message.user-message .message-content {
  background: #0066cc;
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-message.user-message .message-content p {
  color: white;
}
.chat-message.bot-message {
  justify-content: flex-start;
}
.chat-message.bot-message .message-content {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 4px;
}
.chat-message.error-message .message-content {
  background: #fee;
  border-color: #dc3545;
}
.chat-message.error-message .message-content p {
  color: #dc3545;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  animation: typingBounce 1.4s infinite;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-disclaimer {
  padding: 12px 20px;
  background: #fff9e6;
  border-top: 1px solid #ffe08a;
  font-size: 11px;
  color: #856404;
  text-align: center;
  line-height: 1.4;
}

.chat-input-wrapper {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  transition: border-color 0.2s;
  max-height: 120px;
  overflow-y: auto;
}
.chat-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.chat-input::-moz-placeholder {
  color: #999;
}
.chat-input::placeholder {
  color: #999;
}
.chat-input:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
}
.chat-input::-webkit-scrollbar {
  width: 4px;
}
.chat-input::-webkit-scrollbar-track {
  background: transparent;
}
.chat-input::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.chat-send {
  background: #0066cc;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send:hover:not(:disabled) {
  background: #004d99;
  transform: translateY(-1px);
}
.chat-send:active:not(:disabled) {
  transform: translateY(0);
}
.chat-send:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.char-counter {
  margin-top: 8px;
  font-size: 11px;
  color: #666;
  text-align: right;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-button,
  .chat-container,
  .chat-message,
  .typing-indicator span {
    animation: none;
    transition: none;
  }
}
@media (prefers-contrast: high) {
  .chat-button {
    border: 2px solid white;
  }
  .chat-message .message-content {
    border-width: 2px;
  }
}
/*# sourceMappingURL=chatbot.css.map */