/* ==========================================================================
   YehezAI Floating Chatbot Widget Styles
   ========================================================================== */

#yehez-chatbot-launcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #38bdf8;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#yehez-chatbot-launcher:hover {
  transform: scale(1.1) translateY(-2px);
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.35), inset 0 0 20px rgba(56, 189, 248, 0.2);
}

#yehez-chatbot-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #1e293b;
  color: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#yehez-chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Light mode overrides for chatbot window */
body.light-mode #yehez-chatbot-window {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Header */
.chatbot-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #0f2a43 0%, #15803d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2e8b57;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chatbot-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.chatbot-close-btn:hover {
  opacity: 1;
}

/* Messages Body */
.chatbot-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #334155;
  color: #f8fafc;
  border-bottom-left-radius: 4px;
}

body.light-mode .chat-bubble.bot {
  background: #f1f5f9;
  color: #0f172a;
}

.chat-bubble.user {
  align-self: flex-end;
  background: #2e8b57;
  color: white;
  border-bottom-right-radius: 4px;
}

/* Quick Suggestion Chips */
.chatbot-chips {
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .chatbot-chips {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chip-btn {
  background: rgba(46, 139, 87, 0.15);
  color: #2e8b57;
  border: 1px solid rgba(46, 139, 87, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: #2e8b57;
  color: white;
}

/* Footer Input Form */
.chatbot-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}

body.light-mode .chatbot-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chatbot-input {
  flex: 1;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.88rem;
  outline: none;
}

body.light-mode .chatbot-input {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.chatbot-send-btn {
  background: #2e8b57;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chatbot-send-btn:hover {
  background: #15803d;
}
