/* orbo.css - Premium Chatbot Interface */
.orbo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.orbo-overlay.active {
  opacity: 1;
  visibility: visible;
}

.orbo-modal {
  background: rgba(12, 10, 30, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  width: 90%;
  max-width: 420px;
  height: 600px;
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.orbo-overlay.active .orbo-modal {
  transform: translateY(0) scale(1);
}

.orbo-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(20, 14, 50, 0.9), rgba(12, 10, 30, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orbo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.orbo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6366f1, #00f0ff, #8b5cf6, #6366f1);
  animation: orboSpin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.orbo-avatar-inner {
  width: 34px;
  height: 34px;
  background: #0a001f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.orbo-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.orbo-status {
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.orbo-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

.orbo-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.orbo-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.orbo-chat-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Custom scrollbar for chat */
.orbo-chat-area::-webkit-scrollbar {
  width: 6px;
}
.orbo-chat-area::-webkit-scrollbar-track {
  background: transparent;
}
.orbo-chat-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.orbo-chat-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.orbo-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: msgPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes msgPop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orbo-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.orbo-msg.user {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.orbo-input-area {
  padding: 16px 20px;
  background: rgba(10, 0, 31, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
}

.orbo-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.orbo-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.orbo-input::placeholder {
  color: #64748b;
}

.orbo-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #6366f1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.orbo-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.orbo-send:active {
  transform: scale(0.95);
}

.orbo-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  display: none;
}

.orbo-typing.active {
  display: flex;
}

.orbo-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}

.orbo-dot:nth-child(1) { animation-delay: -0.32s; }
.orbo-dot:nth-child(2) { animation-delay: -0.16s; }

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

@keyframes orboSpin {
  to { transform: rotate(360deg); }
}

/* Floating Action Button */
#orboBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  font-size: 1.5rem;
}

#orboBtn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

#orboBtn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: orboSpin 3s linear infinite;
  opacity: 0.5;
}
