/* ==================================================
LIAM CHATBOT - BIAI TECHNOLOGIES
================================================== */

#liamChatButton {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  z-index: 999999;
  cursor: pointer;
  padding: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
}

#liamChatButton:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

#liamChatButton img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

#liamChatBox {
  position: fixed;
  right: 24px;
  bottom: 116px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 150px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  z-index: 999998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
}

#liamChatBox.liam-open {
  display: flex;
  animation: liamOpen .35s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes liamOpen {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.liam-header {
  background: linear-gradient(135deg, #0B8CFF, #1E40AF);
  color: #ffffff;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.liam-header img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  object-fit: cover;
  background: #fff;
}

.liam-header-info {
  flex: 1;
}

.liam-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
}

.liam-status {
  font-size: .78rem;
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.liam-status-dot {
  width: 8px;
  height: 8px;
  background: #00C853;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 200, 83, .18);
}

.liam-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.liam-messages {
  flex: 1;
  padding: 18px;
  background: #F8FAFC;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.liam-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-line;
}

.liam-message.bot {
  background: #ffffff;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.liam-message.user {
  background: #0B8CFF;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.liam-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
  background: #F8FAFC;
}

.liam-chip {
  border: 1px solid #D8E3F0;
  background: #fff;
  color: #1E40AF;
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.liam-chip:hover {
  background: #EFF6FF;
  border-color: #0B8CFF;
}

.liam-input-area {
  padding: 14px;
  border-top: 1px solid #E2E8F0;
  background: #ffffff;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#liamInput {
  flex: 1;
  resize: none;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  max-height: 90px;
}

#liamInput:focus {
  border-color: #0B8CFF;
  box-shadow: 0 0 0 4px rgba(11, 140, 255, .10);
}

#liamSend {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #0B8CFF;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, transform .2s ease;
}

#liamSend:hover {
  background: #0876d8;
  transform: translateY(-1px);
}

.liam-footer-note {
  font-size: .68rem;
  color: #64748B;
  text-align: center;
  padding: 7px 12px 10px;
  background: #ffffff;
}

@media(max-width: 600px) {
  #liamChatBox {
    right: 12px;
    left: 12px;
    bottom: 104px;
    width: auto;
    height: 68vh;
    border-radius: 24px;
  }

  #liamChatButton {
    right: 18px;
    bottom: 18px;
    width: 70px;
    height: 70px;
  }
}