/* Chatbot Widget Styles */
.chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 350px;
  max-width: 95vw;
  height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  z-index: 2000;
  transition: box-shadow 0.3s, transform 0.3s;
  font-family: 'Poppins', Arial, sans-serif;
  border: 1px solid #e0e0e0;
}
.chat-container.open {
  display: flex;
}
.chat-header {
  background: #198754;
  color: #fff;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.chat-title i {
  font-size: 1.3rem;
  margin-right: 8px;
}
.chat-controls .unread-badge {
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.85rem;
  margin-right: 8px;
  display: none;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.message.bot {
  background: #e9ecef;
  color: #212529;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.message.user {
  background: #198754;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.chat-footer {
  padding: 16px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}
.chat-form {
  display: flex;
  gap: 10px;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  outline: none;
  font-size: 1rem;
  background: #f8f9fa;
}
.chat-send {
  background: #198754;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}
.chat-send:hover {
  background: #145c32;
}
@media (max-width: 576px) {
  .chat-container {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  .chat-header {
    border-radius: 0;
  }
}
/* File and voice buttons */
.chat-attach, .chat-voice {
  background: none;
  border: none;
  color: #198754;
  font-size: 1.2rem;
  padding: 5px;
  cursor: pointer;
  transition: color 0.3s;
}
.chat-attach:hover, .chat-voice:hover {
  color: #145c32;
}
.chat-voice.recording {
  color: #dc3545;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
.file-message {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 10px;
}
.file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}
.file-preview i {
  font-size: 1.5rem;
  color: #198754;
}
.file-preview small {
  color: #6c757d;
}

/* Circular Chat Launcher */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: #198754;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 2100;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  animation: launcherPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-launcher:hover {
  background: #145c32;
}
.chat-launcher .unread-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

/* Chat window entrance/exit animations */
.chat-animate-in {
  animation: chatIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-animate-out {
  animation: chatOut 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes chatIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chatOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(40px) scale(0.95); }
}

/* Launcher pop/fade animation */
@keyframes launcherPop {
  0% { opacity: 0; transform: scale(0.7); }
  80% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* Quick Replies Area */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  animation: quickRepliesIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes quickRepliesIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.quick-reply-btn {
  background: #f1f3f4;
  color: #198754;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  outline: none;
}
.quick-reply-btn:hover, .quick-reply-btn:focus {
  background: #198754;
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 2px 8px rgba(25,135,84,0.12);
}
.quick-reply-btn:active {
  background: #145c32;
  color: #fff;
  transform: scale(0.97);
} 