/* SofteeTech AI Mascot & Chat Widget Stylesheet - Ultra Lightweight & Resilient */

#softee-mascot-dock {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none;
}

#softee-speech-bubble {
  background: #ffffff;
  color: #0b1220;
  border: 1px solid #dbe5f2;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(24, 59, 113, 0.16);
  max-width: 220px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

#softee-speech-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#softee-speech-bubble span.bubble-emoji {
  font-size: 16px;
}

#softee-canvas-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 12px 30px rgba(23, 97, 238, 0.35);
  background: linear-gradient(135deg, #1761ee 0%, #0b1220 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#softee-canvas-wrapper:hover {
  transform: scale(1.1);
}

.mascot-avatar-graphic {
  width: 44px;
  height: 44px;
  animation: mascotBob 3s ease-in-out infinite;
}

@keyframes mascotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.mascot-online-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #12b34d;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(18, 179, 77, 0.7);
}

#softee-chat-window {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 80px);
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e1e9f5;
  box-shadow: 0 24px 65px rgba(11, 18, 32, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000000;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#softee-chat-window.chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.softee-chat-header {
  background: linear-gradient(135deg, #0b1220 0%, #0f2a5a 60%, #1761ee 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1761ee;
  font-weight: 800;
  font-size: 19px;
}

.chat-header-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.chat-header-text span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-text span::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.softee-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(24, 59, 113, 0.04);
}

.chat-msg.user {
  align-self: flex-end;
  background: #1761ee;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-chip {
  background: #eef4ff;
  border: 1px solid #d4e3fc;
  color: #1761ee;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 100px;
  cursor: pointer;
}

.chat-chip:hover {
  background: #1761ee;
  color: #ffffff;
}

.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  align-self: flex-start;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

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

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

.softee-chat-input-bar {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.softee-chat-input-bar input {
  flex: 1;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  color: #0f172a;
}

.softee-chat-input-bar input:focus {
  border-color: #1761ee;
}

.chat-send-btn {
  background: #1761ee;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 768px) {
  #softee-mascot-dock {
    bottom: 16px;
    right: 16px;
  }
  #softee-canvas-wrapper {
    width: 66px;
    height: 66px;
  }
  #softee-chat-window {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    height: calc(100vh - 90px);
  }
}
