/* ============================================================
   DIG-it BUILDER CHAT — PRODUCTION STYLES
   ============================================================ */

/* ============================================================
   LAUNCHER — DIG-it DUDE (replaces old purple circle)
   ============================================================ */

.digit-chat-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  cursor: pointer;
  z-index: 999999;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* DIG-it Dude avatar */
.dig-it-dude-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform .2s ease;
}

/* Hover — friendly, not needy */
.digit-chat-bubble:hover .dig-it-dude-avatar {
  transform: scale(1.05);
}

/* Speech bubble */
.dig-it-dude-bubble {
  background: #ffffff;
  color: #111;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  font-size: 14px;
  line-height: 1.35;
  max-width: 240px;
}

/* ============================================================
   SUBTLE IDLE ANIMATION (calm + premium)
   ============================================================ */

@keyframes digit-dude-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes digit-dude-blink {
  0%, 90%, 100% { opacity: 1; }
  92%, 96%      { opacity: 0.9; }
}

.dig-it-dude-avatar {
  animation: digit-dude-float 5s ease-in-out infinite,
             digit-dude-blink 9s ease-in-out infinite;
}

/* ============================================================
   CHAT PANEL (largely preserved, lightly refined)
   ============================================================ */

.digit-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 104px;
  width: 360px;
  max-height: 70vh;
  background: #111321;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
}

.digit-chat-panel.open {
  display: flex;
}

.digit-chat-header {
  padding: 12px 14px;
  background: #1b1f33;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.digit-chat-header button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ============================================================
   CHAT CONTENT
   ============================================================ */

.digit-chat-messages {
  padding: 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  font-size: 13px;
}

.digit-chat-msg {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 90%;
}

.digit-msg-user {
  background: #262a3f;
  margin-left: auto;
}

.digit-msg-bot {
  background: #181c2b;
  border-left: 3px solid #B56EE4;
  margin-right: auto;
}

/* ============================================================
   INPUT AREA
   ============================================================ */

.digit-chat-form {
  padding: 10px;
  border-top: 1px solid #272b3e;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.digit-chat-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #3a3f5a;
  padding: 8px 10px;
  background: #0f1220;
  color: #fff;
  resize: vertical;
  font-size: 13px;
}

.digit-chat-send {
  align-self: flex-end;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #B56EE4;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
