/* ── FLOATING CHATBOT WIDGET STYLES ── */

/* Launcher Button */
.omega-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0D1B2A;
  border: 2px solid #C8A84B;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.omega-chat-launcher:hover {
  transform: scale(1.05);
  background: #1C3150;
}

.omega-chat-launcher svg {
  width: 28px;
  height: 28px;
  fill: #C8A84B;
  transition: transform 0.2s ease;
}

/* Launcher Badge / Tooltip */
.omega-chat-badge {
  position: absolute;
  right: 76px;
  bottom: 10px;
  background: #FFFFFF;
  color: #1A1F2E;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #DDE1E7;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.omega-chat-launcher:hover .omega-chat-badge {
  opacity: 1;
  transform: translateX(0);
}

/* Chat Container */
.omega-chat-container {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #DDE1E7;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.omega-chat-container.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Chat Header */
.omega-chat-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}

/* Radial Logo SVG styles */
.omega-chat-header-logo-container {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.omega-chat-logo-spin {
  animation: omega-spin 20s linear infinite;
}

@keyframes omega-spin {
  100% { transform: rotate(360deg); }
}

.omega-chat-header-info {
  flex: 1;
}

.omega-chat-header-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.2;
}

.omega-chat-header-status {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

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

.omega-chat-btn-end {
  color: #DC2626;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: opacity 0.15s, background-color 0.15s;
}

.omega-chat-btn-end:hover {
  opacity: 0.8;
  background-color: #FEF2F2;
}

.omega-chat-btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: background-color 0.15s, color 0.15s;
}

.omega-chat-btn-icon:hover {
  background-color: #F1F5F9;
  color: #1E293B;
}

.omega-chat-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Chat Messages */
.omega-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.omega-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.omega-chat-messages::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 4px;
}

/* Empty Placeholder State */
.omega-chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  padding: 24px;
}

.omega-chat-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #94A3B8;
}

.omega-chat-empty-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.omega-chat-empty-text {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.5;
}

/* Message Row & Bubbles */
.omega-chat-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 85%;
}

.omega-chat-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.omega-chat-msg-row.bot {
  align-self: flex-start;
}

.omega-chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.omega-chat-msg-avatar.user {
  background: #C8A84B;
  color: #0D1B2A;
}

.omega-chat-msg-avatar.bot {
  background: #0D1B2A;
  color: #C8A84B;
}

.omega-chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.omega-chat-bubble.user {
  background: #0D1B2A;
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
}

.omega-chat-bubble.bot {
  background: #FFFFFF;
  color: #1A1F2E;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 3px;
}

.omega-chat-bubble p {
  margin-bottom: 6px;
}

.omega-chat-bubble p:last-child {
  margin-bottom: 0;
}

.omega-chat-bubble ul, .omega-chat-bubble ol {
  padding-left: 18px;
  margin: 6px 0;
}

.omega-chat-bubble li {
  margin-bottom: 3px;
}

/* Typing Bouncing Dots */
.omega-chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 2px;
}

.omega-chat-typing-dots span {
  width: 6px;
  height: 6px;
  background: #C8A84B;
  border-radius: 50%;
  animation: omega-bounce .9s infinite;
}

.omega-chat-typing-dots span:nth-child(2) { animation-delay: .15s; }
.omega-chat-typing-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes omega-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-5px); }
}

/* Chat Footer / Input area */
.omega-chat-footer {
  padding: 12px 16px;
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.omega-chat-input-wrap {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  padding: 8px 14px;
  background: #F8FAFC;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.omega-chat-input-wrap:focus-within {
  border-color: #C8A84B;
  background: #FFFFFF;
}

.omega-chat-footer textarea {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #1A1F2E;
  outline: none;
  line-height: 1.4;
  max-height: 80px;
  padding: 0;
  overflow-y: auto;
}

.omega-chat-footer textarea::placeholder {
  color: #94A3B8;
}

.omega-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #C8A84B;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.omega-chat-send-btn:hover {
  background: #B0923C;
}

.omega-chat-send-btn:active {
  transform: scale(0.95);
}

.omega-chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.omega-chat-send-btn svg {
  fill: currentColor;
  width: 16px;
  height: 16px;
}

/* Error Message */
.omega-chat-error-msg {
  font-size: 11.5px;
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 4px;
}

/* Responsive adjust for mobile screens */
@media (max-width: 420px) {
  .omega-chat-container {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
  }
  .omega-chat-launcher {
    right: 16px;
    bottom: 16px;
  }
}
