/**
 * GuestBot Feature Chatbot Styles
 */

#feature-bot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* Toggle Button */
.fb-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.fb-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
}

.fb-toggle-icon,
.fb-toggle-close {
  position: absolute;
  transition: all 0.3s ease;
}

.fb-toggle-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

#feature-bot-widget.open .fb-toggle-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

#feature-bot-widget.open .fb-toggle-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Notification Badge */
.fb-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fb-pulse 2s ease-in-out infinite;
}

@keyframes fb-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Chat Window */
.fb-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 150px);
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

#feature-bot-widget.open .fb-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
  border-bottom: 1px solid #1a1a1a;
}

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

.fb-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.fb-header-text {
  display: flex;
  flex-direction: column;
}

.fb-header-text strong {
  color: #ffffff;
  font-size: 14px;
}

.fb-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #737373;
}

.fb-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: fb-online 2s ease-in-out infinite;
}

@keyframes fb-online {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fb-minimize {
  background: none;
  border: none;
  color: #737373;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.fb-minimize:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* Messages */
.fb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.fb-message.fb-animate {
  animation: fb-slide-in 0.3s ease;
}

@keyframes fb-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fb-bot {
  background: #1a1a1a;
  color: #d4d4d4;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.fb-bot strong {
  color: #10b981;
}

.fb-user {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Suggestions */
.fb-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.fb-suggestion {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #a3a3a3;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.fb-suggestion:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* Input Area */
.fb-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
}

.fb-input {
  flex: 1;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.fb-input:focus {
  border-color: #10b981;
}

.fb-input::placeholder {
  color: #525252;
}

.fb-send {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.fb-send:hover {
  transform: scale(1.05);
}

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

/* Scrollbar */
.fb-messages::-webkit-scrollbar {
  width: 6px;
}

.fb-messages::-webkit-scrollbar-track {
  background: transparent;
}

.fb-messages::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.fb-messages::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  #feature-bot-widget {
    bottom: 16px;
    right: 16px;
  }

  .fb-toggle {
    width: 54px;
    height: 54px;
  }

  .fb-window {
    bottom: 70px;
    width: calc(100vw - 32px);
    right: -8px;
    height: 450px;
  }
}
