
/* ===============================
   FLOATING CHAT LAUNCHER
================================ */
#chat-launcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  animation: pulse 2s infinite;
  background: #fff;
}

#chat-launcher img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ===============================
   CHAT BOX
================================ */
.chat-box {
  position: fixed;
  bottom: 100px;
  left: 20px;
  width: 340px;
  max-width: 95%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
  overflow: hidden;
  z-index: 1000;
  display: none;
}

/* ===============================
   HEADER
================================ */
.chat-header {
  background: linear-gradient(135deg, #0b3d2e, #145a32);
  color: #ffffff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ===============================
   MINIMIZE BUTTON
================================ */
.min-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #145a32;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  transition: transform 0.2s;
}

.min-btn:hover {
  transform: scale(1.1);
}

/* ===============================
   CHAT BODY
================================ */
.chat-body {
  padding: 14px;
  height: 300px;
  overflow-y: auto;
  background: #f9f9f9;
}

/* ===============================
   MESSAGES
================================ */
.bot,
.user {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot {
  background: #eaeaea;
  color: #000;
}

.user {
  background: #145a32;
  color: #ffffff;
  margin-left: auto;
}

/* ===============================
   OPTIONS BUTTONS
================================ */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.options button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #145a32;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.options button:hover {
  background: #0b3d2e;
  transform: translateY(-1px);
}

/* ===============================
   FOOTER INPUT AREA
================================ */
.chat-footer {
  padding: 12px;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
}

.chat-footer input {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

.chat-footer input:focus {
  border-color: #28a745;
}

.chat-footer button {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: none;
  background: #28a745;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-footer button:hover {
  background: #1e7e34;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20,90,50,.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(20,90,50,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20,90,50,0);
  }
}

/* Aladdin Lamp Effect */
.lamp-open {
  animation: lampOpen 0.4s ease-out;
}

.lamp-close {
  animation: lampClose 0.45s ease-in forwards;
}

@keyframes lampOpen {
  0% {
    transform: scale(0) translateY(100px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes lampClose {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0) translateY(100px);
    opacity: 0;
  }
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 600px) {
  .chat-box {
    width: 95%;
    left: 2.5%;
    bottom: 90px;
  }

  #chat-launcher {
    left: 15px;
    bottom: 15px;
  }
}

