/* support.css — Human AI Support Widget */

.support-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10000;
  font-family: 'Barlow', sans-serif;
}

.support-bubble {
  width: 140px;
  height: 50px;
  background: #c49a2c;
  color: #000;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(0,0,0,0.1);
}

.support-bubble:hover {
  transform: translateY(-5px) scale(1.05);
  background: #d4a73c;
}

.support-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  height: 500px;
  background: #111820;
  border: 1px solid #1e2d3d;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.support-window.active {
  display: flex;
}

.support-header {
  background: #1a2431;
  padding: 15px 20px;
  border-bottom: 1px solid #1e2d3d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-header-info {
  display: flex;
  flex-direction: column;
}

.support-agent-name {
  font-weight: 800;
  color: #c49a2c;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.support-status {
  font-size: 0.7rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
}

.support-close {
  color: #3d5166;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.support-close:hover { color: #fff; }

.support-chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: radial-gradient(circle at top right, #141c28, #0a0e14);
}

.support-chat::-webkit-scrollbar { width: 5px; }
.support-chat::-webkit-scrollbar-track { background: transparent; }
.support-chat::-webkit-scrollbar-thumb { background: #1e2d3d; border-radius: 10px; }

.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.msg.ai {
  align-self: flex-start;
  background: #1e2d3d;
  color: #e8f0f8;
  border-bottom-left-radius: 2px;
}

.msg.user {
  align-self: flex-end;
  background: #c49a2c;
  color: #000;
  font-weight: 600;
  border-bottom-right-radius: 2px;
}

.msg.typing {
  align-self: flex-start;
  background: #1e2d3d;
  color: #e8f0f8;
  border-bottom-left-radius: 2px;
  display: flex;
  gap: 4px;
  padding: 12px 18px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #6b8299;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.support-input-area {
  padding: 15px;
  background: #111820;
  border-top: 1px solid #1e2d3d;
  display: flex;
  gap: 10px;
}

.support-input-area input {
  flex: 1;
  background: #0a0e14;
  border: 1px solid #1e2d3d;
  border-radius: 8px;
  padding: 10px 15px;
  color: #fff;
  font-family: inherit;
  outline: none;
}

.support-input-area input:focus { border-color: #c49a2c; }

.support-send {
  background: #c49a2c;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.support-send:hover { background: #d4a73c; }
