/* WHMCS AI Assistant - Global Extension Styles v2 */

#whmcs-ai-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000000;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid #e38a00;
}

#whmcs-ai-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.16);
}

#whmcs-ai-trigger img {
  width: 40px;
  height: 40px;
}

#whmcs-ai-sidebar-v2 {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Trạng thái mở sẽ được gán translateX(0) qua inline style */
}

/* Fix Iframe focus issues */
#whmcs-ai-sidebar-v2 iframe {
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  overflow: hidden;
}

@keyframes aiSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Status Highlighting on original WHMCS page */
.ai-status-highlight-spam {
  background-color: #fef2f2 !important;
  transition: background-color 0.8s ease;
}

.ai-status-highlight-notification {
  background-color: #fffbeb !important;
  transition: background-color 0.8s ease;
}

.ai-status-highlight-support {
  background-color: #eff6ff !important;
  transition: background-color 0.8s ease;
}
