/* ======================================================
   ETLBHA FLOATING BOT – NAVY FINAL CSS
====================================================== */

/* =========================
   Floating Bot Button
========================= */
#etlBotBtn{
  position:fixed;
  left:22px;
  bottom:22px;                 /* Desktop */
  width:60px;
  height:60px;
  border-radius:50%;

  /* 🎨 NAVY Gradient */
  background:linear-gradient(
    180deg,
    #2E3F73 0%,    /* كحلي أفتح */
    #1B2C5D 65%    /* الكحلي الأساسي */
  );

  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:9999;

  /* 🟦 Navy Shadow */
  box-shadow:
    0 14px 30px rgba(27,44,93,.45),
    inset 0 2px 4px rgba(255,255,255,.35);

  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}

/* ✨ Gloss / Shine */
#etlBotBtn::before{
  content:"";
  position:absolute;
  top:6px;
  left:8px;
  width:44px;
  height:22px;
  background:rgba(255,255,255,.25);
  border-radius:50%;
  filter:blur(1px);
}

/* 👉 Tail (Bubble Pointer) */
#etlBotBtn::after{
  content:"";
  position:absolute;
  right:-6px;
  bottom:16px;
  width:0;
  height:0;
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:7px solid #1B2C5D;
}

/* Hover */
#etlBotBtn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 36px rgba(27,44,93,.55);
}

/* Icon */
#etlBotBtn svg{
  width:26px;
  height:26px;
  fill:#fff;
  z-index:1;
}

/* =========================
   Chat Box
========================= */
#etlBotBox{
  position:fixed;
  left:22px;
  bottom:90px;                 /* Desktop */
  width:320px;
  height:420px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 18px 45px rgba(0,0,0,.35);
  display:none;
  flex-direction:column;
  z-index:9999;
  overflow:hidden;
}

/* Header */
.etlBotHead{
  direction:rtl;
  background:#1B2C5D;
  color:#fff;
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.etlBotHead .ttl{
  font-weight:700;
  font-size:14px;
}

#etlBotClose{
  background:none;
  border:none;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

/* Messages */
.etlBotMsgs{
  flex:1;
  padding:12px;
  overflow-y:auto;
  background:#f6f6f6;
}

.etlMsg{
  max-width:80%;
  padding:8px 12px;
  margin-bottom:8px;
  border-radius:12px;
  font-size:14px;
  direction:rtl;
  text-align:right;
}

/* Bot */
.etlMsg.bot{
  background:#e9ecf3;
  color:#1B2C5D;
}

/* User */
.etlMsg.user{
  background:#1B2C5D;
  color:#fff;
  margin-left:auto;
}

/* =========================
   Footer (Input + Send)
========================= */
.etlBotFoot{
  display:flex;
  flex-direction:row-reverse;
  border-top:1px solid #ddd;
}

.etlBotFoot input{
  flex:1;
  border:none;
  padding:10px 12px;
  outline:none;
  font-size:14px;
  direction:rtl;
  text-align:right;
}

.etlBotFoot button{
  border:none;
  padding:0 16px;
  background:#1B2C5D;
  color:#fff;
  cursor:pointer;
  font-size:14px;
  border-radius:0 0 16px 0;
}

/* =========================
   Hint Bubble (Side Text)
========================= */
#etlBotHint{
  position:fixed;
  left:90px;
  bottom:22px;
  font-size:11px;
  line-height:1.4;
  color:#1B2C5D;
  background:#fff;
  padding:6px 10px;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(0,0,0,.2);
  opacity:0;
  transform:translateX(-6px);
  transition:opacity .3s ease, transform .3s ease;
  z-index:10000;
  pointer-events:none;
  white-space:nowrap;
}

/* =========================
   Mobile Adjustments
========================= */
@media (max-width: 899px){
  #etlBotBtn{
    bottom:90px;
  }

  #etlBotBox{
    bottom:160px;
  }

  #etlBotHint{
    left:80px;
    bottom:80px;
  }
}

/* =========================
   Shake Animation
========================= */
@keyframes etlShake{
  0%,100%{ transform:translateX(0); }
  20%{ transform:translateX(-2px); }
  40%{ transform:translateX(2px); }
  60%{ transform:translateX(-2px); }
  80%{ transform:translateX(2px); }
}

#etlBotBtn.shake{
  animation:etlShake .3s ease-in-out;
}
.etlWhatsappBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  background:linear-gradient(180deg,#25D366,#1ebe5d);
  color:#fff !important;
  padding:12px 18px;
  border-radius:14px;

  font-size:14px;
  font-weight:700;
  text-decoration:none !important;

  box-shadow:0 6px 16px rgba(37,211,102,.35);
  transition:transform .15s ease, box-shadow .15s ease;
}

.etlWhatsappBtn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(37,211,102,.45);
}
/* ======================================================
   END
====================================================== */