/* webprolab.ru/components/ChatWidget.vue */

/* Floating Action Button */
.chat-fab[data-v-61448a7e] {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(249, 115, 22, 0.4),
    0 0 40px rgba(251, 191, 36, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-fab[data-v-61448a7e]:hover {
  transform: scale(1.08);
  box-shadow:
    0 8px 32px rgba(249, 115, 22, 0.5),
    0 0 60px rgba(251, 191, 36, 0.2);
}
.chat-fab.is-open[data-v-61448a7e] {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.chat-fab.is-open[data-v-61448a7e]:hover {
  background: rgba(239, 68, 68, 0.2);
}
.fab-icon[data-v-61448a7e] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab-avatar[data-v-61448a7e] {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: alisa-fab-pulse-61448a7e 3.4s ease-in-out infinite;
}
.fab-avatar img[data-v-61448a7e] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@keyframes alisa-fab-pulse-61448a7e {
0%, 100% { transform: scale(1);
}
50% { transform: scale(1.16);
}
}

/* Chat Widget Window */
.chat-widget[data-v-61448a7e] {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 9997;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(145deg, #121218 0%, #1a1a22 100%);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(251, 191, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Header */
.widget-header[data-v-61448a7e] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 12, 0.6);
  flex-shrink: 0;
}
.widget-header-info[data-v-61448a7e] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-avatar[data-v-61448a7e] {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.3);
  flex-shrink: 0;
  animation: alisa-pulse-61448a7e 3.4s ease-in-out infinite;
}
@keyframes alisa-pulse-61448a7e {
0%, 100% { transform: scale(1);
}
50% { transform: scale(1.13);
}
}
.widget-avatar img[data-v-61448a7e] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-agent-name[data-v-61448a7e] {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.widget-agent-status[data-v-61448a7e] {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #10b981;
  margin-top: 1px;
}
.status-dot-w[data-v-61448a7e] {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot-w-61448a7e 2s infinite;
}
@keyframes pulse-dot-w-61448a7e {
0%, 100% { opacity: 1;
}
50% { opacity: 0.5;
}
}
.widget-close-btn[data-v-61448a7e] {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.widget-close-btn[data-v-61448a7e]:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Messages */
.widget-messages[data-v-61448a7e] {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.widget-messages[data-v-61448a7e]::-webkit-scrollbar {
  width: 3px;
}
.widget-messages[data-v-61448a7e]::-webkit-scrollbar-track {
  background: transparent;
}
.widget-messages[data-v-61448a7e]::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.2);
  border-radius: 2px;
}
.widget-loading[data-v-61448a7e] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.loading-dots-w[data-v-61448a7e] {
  display: flex;
  gap: 5px;
}
.loading-dots-w span[data-v-61448a7e] {
  width: 7px;
  height: 7px;
  background: rgba(251, 191, 36, 0.5);
  border-radius: 50%;
  animation: bounce-w-61448a7e 1.4s infinite;
}
.loading-dots-w span[data-v-61448a7e]:nth-child(2) { animation-delay: 0.2s;
}
.loading-dots-w span[data-v-61448a7e]:nth-child(3) { animation-delay: 0.4s;
}
@keyframes bounce-w-61448a7e {
0%, 60%, 100% { transform: translateY(0);
}
30% { transform: translateY(-7px);
}
}
.widget-welcome[data-v-61448a7e] {
  animation: fadeIn-w-61448a7e 0.5s ease;
}
.msg-w[data-v-61448a7e] {
  display: flex;
  gap: 7px;
  max-width: 92%;
  animation: fadeIn-w-61448a7e 0.3s ease;
}
.my-msg-w[data-v-61448a7e] {
  align-self: flex-end;
  flex-direction: row-reverse;
}
@keyframes fadeIn-w-61448a7e {
from { opacity: 0; transform: translateY(6px);
}
to { opacity: 1; transform: translateY(0);
}
}
.msg-avatar-w[data-v-61448a7e] {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.msg-avatar-w img[data-v-61448a7e] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msg-bubble-w[data-v-61448a7e] {
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom-left-radius: 4px;
  word-break: break-word;
}
.my-msg-w .msg-bubble-w[data-v-61448a7e] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.msg-text-w[data-v-61448a7e] {
  font-size: 13px;
  line-height: 1.55;
  color: #e5e7eb;
  white-space: pre-wrap;
  font-family: 'Inter', sans-serif;
}
.my-msg-w .msg-text-w[data-v-61448a7e] {
  color: #fff;
}
.pending-msg-w[data-v-61448a7e] {
  opacity: 0.6;
}

/* Input */
.widget-input-area[data-v-61448a7e] {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 12, 0.4);
  flex-shrink: 0;
}
.widget-input[data-v-61448a7e] {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s;
}
.widget-input[data-v-61448a7e]::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.widget-input[data-v-61448a7e]:focus {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.widget-send-btn[data-v-61448a7e] {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.widget-send-btn[data-v-61448a7e]:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}
.widget-send-btn[data-v-61448a7e]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Transition */
.widget-slide-enter-active[data-v-61448a7e] {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.widget-slide-leave-active[data-v-61448a7e] {
  transition: all 0.25s ease;
}
.widget-slide-enter-from[data-v-61448a7e] {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
}
.widget-slide-leave-to[data-v-61448a7e] {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
}

/* Responsive */
@media (max-width: 500px) {
.chat-fab[data-v-61448a7e] {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
}
.chat-widget[data-v-61448a7e] {
    bottom: 80px;
    right: 12px;
    width: calc(100vw - 24px);
    height: min(520px, calc(100vh - 110px));
    border-radius: 16px;
}
.widget-messages[data-v-61448a7e] {
    padding: 12px;
}
}

