/* Umrah Chatbot - chat.css */
#uc-launcher {
  position: fixed;
  bottom: 24px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
#uc-launcher:hover { transform: scale(1.08); }
#uc-launcher svg { width: 28px; height: 28px; }

#uc-window {
  position: fixed;
  bottom: 94px;
  z-index: 99998;
  width: 360px;
  height: 520px;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
}
#uc-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Position left/right handled by JS */

#uc-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
#uc-header .uc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#uc-header .uc-avatar svg { width: 20px; height: 20px; }
#uc-header .uc-info { flex: 1; }
#uc-header .uc-info h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0; line-height: 1.3; }
#uc-header .uc-info span { color: rgba(255,255,255,0.8); font-size: 11px; }
#uc-header .uc-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#uc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #f5f5f5;
}
#uc-messages::-webkit-scrollbar { width: 4px; }
#uc-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.uc-msg { display: flex; gap: 7px; max-width: 92%; }
.uc-msg.bot { align-self: flex-start; }
.uc-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.uc-bubble {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 14px;
}
.uc-msg.bot .uc-bubble {
  background: #fff;
  color: #222;
  border-radius: 3px 14px 14px 14px;
  border: 1px solid #eee;
}
.uc-msg.user .uc-bubble {
  color: #fff;
  border-radius: 14px 3px 14px 14px;
}
.uc-msg.bot .uc-bubble strong { font-weight: 600; }

.uc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.uc-icon svg { width: 14px; height: 14px; }

.uc-quick-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.uc-qbtn {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.uc-typing { display: flex; gap: 4px; padding: 10px 12px; align-items: center; }
.uc-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #aaa;
  animation: uc-bounce 1.2s infinite;
}
.uc-typing span:nth-child(2) { animation-delay: 0.2s; }
.uc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes uc-bounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

#uc-input-area {
  padding: 10px 12px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
  flex-shrink: 0;
}
#uc-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 90px;
  line-height: 1.4;
  background: #f9f9f9;
  color: #222;
}
#uc-input:focus { border-color: currentColor; background: #fff; }

#uc-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
#uc-send:hover { opacity: 0.85; }
#uc-send svg { width: 16px; height: 16px; }

.uc-ts { font-size: 10px; color: #999; text-align: center; margin: 3px 0; }

.uc-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 400px) {
  #uc-window { width: calc(100vw - 24px); }
}
