/**
 * iNET AI Chatbot Widget Styles
 * Matches portal-client ChatbotWidget.vue design
 */

/* Floating button */
#inet-ai-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#inet-ai-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #0a6ccb 0%, #1e90ff 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 108, 203, 0.4);
  transition: all 0.3s ease;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#inet-ai-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 108, 203, 0.5);
}

#inet-ai-toggle:active {
  transform: translateY(0);
}

.inet-ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.inet-ai-label {
  white-space: nowrap;
}

/* Widget iframe container */
#inet-ai-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 400px;
  height: 560px;
  z-index: 9999;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  animation: inetAiSlideUp 0.3s ease;
}

#inet-ai-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Backdrop for mobile */
#inet-ai-backdrop {
  display: none;
}

/* Slide up animation */
@keyframes inetAiSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile: full screen */
@media (max-width: 767px) {
  #inet-ai-btn {
    bottom: 16px;
    right: 12px;
  }

  #inet-ai-toggle {
    padding: 12px;
    border-radius: 50%;
  }

  .inet-ai-label {
    display: none;
  }

  #inet-ai-widget {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  #inet-ai-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }
}
