/* ============================================================
   SKY-TECH CHATBOT + GREETING POPUP STYLES
   ============================================================ */

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}
/* ===== Chat Card ===== */
.chatbot-card {
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 480px;
  background: linear-gradient(180deg,var(--card),#061425);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2,6,23,0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease;
}
.chatbot-card.open {
  display: flex;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 10px 15px;
}
.chatbot-header img.bot-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}
.chatbot-header button.chatbot-close {
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: linear-gradient(180deg,#061226,#071425);
  color: var(--text-light);
}
.message {
  max-width: 80%;
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.55;
  font-size: 1rem;
  word-wrap: break-word;
}
.message.user {
  background: var(--gradient-primary);
  color: #ffffff;
  margin-left: auto;
}
.message.bot {
  background: rgba(255,255,255,0.03);
  color: #dbeeff;
  margin-right: auto;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.chatbot-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  outline: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.02);
  color: #e6f7ff;
  border-radius: 10px;
}
.chatbot-input button {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  padding: 0 15px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 10px;
}
.chatbot-input button:hover {
  opacity: 0.95;
}

/* ===== Typing Animation ===== */
.typing-dots {
  display: inline-block;
}
.typing-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #ccc;
  border-radius: 50%;
  opacity: .5;
  animation: typing 1s infinite;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: .3; transform: translateY(0); }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Greeting Popup ===== */
.greeting-card {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: linear-gradient(180deg,#071026,#061425);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2,6,23,0.6);
  padding: 20px 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  z-index: 9998;
}
.greeting-card.show {
  opacity: 1;
  transform: translateY(0);
}
.greeting-content {
  text-align: center;
}
.greet-logo {
  width: 60px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.greeting-card h3 {
  margin: 0;
  color: #06b6d4;
  font-size: 1.2rem;
}
.greeting-card p {
  color: #98a4af;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===== Responsiveness ===== */
@media (max-width: 600px) {
  .chatbot-card {
    width: 95%;
    right: 2.5%;
    bottom: 80px;
  }
  .chatbot-toggle {
    right: 15px;
    bottom: 15px;
  }
}

.chatbot-toggle{
 position:fixed;
 bottom:20px;right:25px;
 width:60px;height:60px;
 border-radius:50%;
 background: var(--gradient-primary);
 box-shadow:0 12px 32px rgba(11,95,255,0.12);
 display:flex;align-items:center;justify-content:center;
 cursor:pointer;z-index:999;
 transition:transform .3s ease,box-shadow .3s ease;
}

/* Chatbot panel & message styles (CSP-friendly: no inline styles) */
.chat-panel { display: none; position: fixed; right: 16px; bottom: 90px; width: 320px; max-height: 440px; flex-direction: column; border-radius: 12px; overflow: hidden; z-index: 9999; background: rgba(15,23,42,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 25px 60px rgba(2,6,23,0.6); }
.chat-panel.open { display: flex; }
.chat-header { padding: 12px 14px; display:flex; justify-content:space-between; align-items:center; color:#e6eefb; }
.chat-body { padding:12px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; font-size:14px; }
.chat-input-row { display:flex; gap:8px; padding:8px; border-top:1px solid rgba(255,255,255,0.03); }
.chat-input-row input { flex:1; padding:10px; border-radius:10px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:#fff; }
.chat-input-row button { padding:10px 12px; border-radius:10px; background:#38bdf8; border:none; color:#001122; cursor:pointer; }
.message { max-width:85%; padding:0; }
.message .bubble { padding:10px 12px; border-radius:12px; white-space: pre-line; }
.message.user { align-self:flex-end; }
.message.user .bubble { background: linear-gradient(135deg,#2563eb,#38bdf8); color:#001122; }
.message.bot .bubble { background: rgba(255,255,255,0.06); color:#e6eefb; }
.chat-actions-title { font-weight: 700; margin-bottom: 8px; }
.chat-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.chat-action-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e6eefb;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
}
.chat-action-btn:hover { background: rgba(255,255,255,0.10); }
.chat-action-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e6eefb;
  font-size: 13px;
}
.chat-action-link:hover { background: rgba(255,255,255,0.10); }
.chat-attachment-img { max-width:220px; border-radius:8px; display:block; }
.hidden { display:none !important; }
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }