/* 💬 Floating Launcher */
.ai-launcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #240b6a;
  color: #fff;
  font-size: 24px;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: 0.3s;
}
.ai-launcher:hover { background: #3b22a0; }

/* 🪟 Chat Box */
.ai-chatbox {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 360px;
  height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.25);
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}
.ai-chatbox.open { display: flex; }

/* 🧭 Header */
.ai-header {
  background: #240b6a;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.ai-header-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ai-lang-toggle, .ai-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}
.ai-lang-toggle:hover, .ai-close:hover { opacity: 0.8; }

/* 💬 Chat Window */
.ai-window {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f8f8f8;
  font-size: 15px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* ✏️ Input Area */
.ai-input-area {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
  gap: 10px;          /* ✅ Added gap between input and button */
  padding: 10px;      /* ✅ Added padding for cleaner look */
}
.ai-input-area input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.ai-input-area button {
  background: #240b6a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}
.ai-input-area button:hover { background: #3b22a0; }

/* 🌐 Language Selection */
.ai-lang-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.ai-lang-select h3 {
  margin-bottom: 15px;
  color: #240b6a;
}
.ai-lang-btn {
  background: #240b6a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}
.ai-lang-btn:hover { background: #3b22a0; }

/* 🗨️ Messages */
.ai-user, .ai-bot {
  margin-top: 8px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  word-wrap: break-word;
}
.ai-user {
    margin-left: 40px;
}
.ai-bot {
    margin-right: 40px;
}
.ai-user { text-align: right; background: #e8e6ff; }
.ai-bot  { text-align: left;  background: #f2f2f2; }
.ai-error { color: red; font-style: italic; margin-top: 5px; }
