/* Hubcreate AI Chatbot Styles */
.hc-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Manrope', sans-serif;
}

/* Force panel to hide when the hidden attribute is present */
.hc-panel[hidden] {
  display: none !important;
}

/* Launcher Button */
.hc-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ffc800;
  color: #0d1b2a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hc-launcher:hover {
  transform: scale(1.05);
  background-color: #e6b400;
}

.hc-launcher .hc-ico-close,
.hc-launcher.is-open .hc-ico-chat {
  display: none;
}

.hc-launcher.is-open .hc-ico-close {
  display: block;
}

.hc-launcher svg {
  width: 26px;
  height: 26px;
}

/* Chat Panel */
.hc-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 100px);
  background-color: #0d1b2a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Header */
.hc-header {
  padding: 16px;
  background-color: #14243b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hc-header-text {
  display: flex;
  flex-direction: column;
}

.hc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.hc-subtitle {
  font-size: 0.75rem;
  color: #a0aec0;
}

.hc-close {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.hc-close:hover {
  color: #ffffff;
}

.hc-close svg {
  width: 20px;
  height: 20px;
}

/* Chat Log */
.hc-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-word;
}

.hc-msg--user {
  align-self: flex-end;
  background-color: #ffc800;
  color: #0d1b2a;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.hc-msg--bot {
  align-self: flex-start;
  background-color: #1e2d42;
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.hc-msg--bot a {
  color: #ffc800;
  text-decoration: underline;
}

/* Input Form */
.hc-form {
  padding: 12px;
  background-color: #14243b;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hc-input {
  flex: 1;
  background-color: #0d1b2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
}

.hc-input:focus {
  border-color: #ffc800;
}

.hc-send {
  background-color: #ffc800;
  color: #0d1b2a;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hc-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hc-send svg {
  width: 18px;
  height: 18px;
}

/* Typing Dots Animation */
.hc-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.hc-typing span {
  width: 6px;
  height: 6px;
  background-color: #a0aec0;
  border-radius: 50%;
  animation: hcBounce 1.2s infinite ease-in-out;
}

.hc-typing span:nth-child(2) { animation-delay: 0.2s; }
.hc-typing span:nth-child(3) { animation-delay: 0.4s; }

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