/* public/assets/css/chatbot.css */
.meem-bot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.meem-bot__button {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.meem-bot__button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
}

.meem-bot__panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 350px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp .25s ease;
}

.meem-bot__panel.is-open { display: flex; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.meem-bot__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.meem-bot__title { display:flex; gap:10px; align-items:center; }
.meem-bot__title img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.meem-bot__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.meem-bot__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  max-height: 360px;
}

.msg { display:flex; }
.msg--bot { justify-content: flex-start; }
.msg--user { justify-content: flex-end; }

.msg__bubble {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: .95rem;
}
.msg--bot .msg__bubble {
  background: #f1f5f9; color:#334155;
}
.msg--user .msg__bubble {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff;
}

.meem-bot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px 6px 6px;
}
.quick-btn {
  display:flex; align-items:center; gap:6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.quick-btn:hover { background: #e2e8f0; transform: translateY(-1px); }

.meem-bot__input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
}
.meem-bot__input input {
  flex: 1; border:1px solid #cbd5e1; border-radius: 10px; padding: 10px;
}
.meem-bot__send {
  border:0; border-radius:10px; padding: 10px 12px; color:#fff;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6); cursor:pointer;
}

@media (max-width: 768px) {
  .meem-bot__panel { width: 300px; max-height: 460px; }
  .meem-bot { bottom: 15px; right: 15px; }
}
