/* TriggerVox Styles */
.ai-voice-assistant-container {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 99999 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  overflow: visible !important;
}

.ai-voice-assistant-btn {
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 50% !important;
  width: 70px !important;
  height: 70px !important;
  padding: 0 !important;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 70px !important;
  max-width: 70px !important;
  overflow: visible !important;
  animation: buttonGlow 2s ease-in-out infinite;
}

.ai-voice-assistant-btn:hover {
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(79, 70, 229, 0.7);
  animation: none; /* Pause glow animation on hover */
}

.ai-voice-assistant-btn:active {
  transform: scale(1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ai-assistant-icon {
  font-size: 18px;
  line-height: 1;
}

.ai-assistant-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 80px;
}

.ai-assistant-text {
  font-weight: 600;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

.ai-assistant-timer {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Button Photo Styles */
.ai-button-photo {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  z-index: 1 !important;
  transition: transform 0.3s ease !important;
  display: block !important;
  pointer-events: none !important;
}

.ai-voice-assistant-btn:hover .ai-button-photo {
  transform: scale(1.05) !important;
}

/* Button Label - Appears on Hover */
.ai-button-label {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(10px) !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  z-index: 100001 !important;
}

/* Arrow pointing down from label */
.ai-button-label::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-top: 6px solid #7c3aed !important;
}

/* Show label on hover */
.ai-voice-assistant-btn:hover .ai-button-label {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Pulse Ring Animations - Attention-grabbing effect */
.ai-button-pulse-ring,
.ai-button-pulse-ring-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border: 3px solid rgba(79, 70, 229, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.ai-button-pulse-ring {
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.ai-button-pulse-ring-2 {
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  animation-delay: 1s;
}

/* Pulse Ring Animation */
@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Glow Animation for Button */
@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3), 0 0 30px rgba(79, 70, 229, 0.6);
  }
}

/* Error message animations */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.ai-voice-error {
  animation: slideUp 0.3s ease;
}

/* Status indicator */
.ai-voice-status-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid white;
  display: none;
}

.ai-voice-assistant-btn.active .ai-voice-status-indicator {
  display: block;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Accessibility improvements */
.ai-voice-assistant-btn:focus {
  outline: 3px solid rgba(79, 70, 229, 0.5);
  outline-offset: 2px;
}

.ai-voice-assistant-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .ai-voice-assistant-container {
    bottom: 20px !important;
    right: 20px !important;
  }

  .ai-voice-assistant-btn {
    width: 65px !important;
    height: 65px !important;
    padding: 0 !important;
    min-width: 65px !important;
    max-width: 65px !important;
    border-radius: 50% !important;
  }

  .ai-button-pulse-ring,
  .ai-button-pulse-ring-2 {
    width: 65px;
    height: 65px;
  }

  .ai-button-label {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .ai-button-label::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #7c3aed;
  }

  .ai-assistant-text {
    font-size: 14px;
  }

  .ai-assistant-timer {
    font-size: 11px;
  }

  .ai-voice-error {
    bottom: 100px;
    right: 20px;
    max-width: 250px;
  }
}

/* Hide Vapi default buttons - but exclude our custom buttons */
[data-testid="vapi-button"]:not(.ai-voice-assistant-btn):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close),
[class*="vapi"]:not(.ai-voice-assistant-btn):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close),
[id*="vapi"]:not(.ai-voice-assistant-btn):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close),
.vapi-support-btn:not(.ai-voice-assistant-btn):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close),
[class*="vapi-support"]:not(.ai-voice-assistant-btn):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close),
button[class*="vapi"]:not(.ai-voice-assistant-btn):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0px !important;
  height: 0px !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  z-index: -1 !important;
  transform: scale(0) !important;
  overflow: hidden !important;
}

/* Additional hiding for buttons that might be positioned at bottom-right */
button[style*="position: fixed"][style*="bottom"][style*="right"]:not(
    .ai-voice-assistant-btn
  ):not(.ai-modal-tab):not(.ai-chat-send-btn):not(.ai-chat-attach-btn):not(.ai-voice-tab-button):not(.ai-modal-close) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

/* Force our button to be on top */
.ai-voice-assistant-container,
.ai-voice-assistant-btn {
  z-index: 99999 !important;
  position: relative !important;
}

/* Modal Styles */
/* Overlay removed - modal opens without background overlay */
.ai-modal-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  z-index: -1 !important;
}

.ai-modal-overlay.ai-modal-open {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ai-modal-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 600px;
  max-height: 90vh;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ai-modal-container.ai-modal-open {
  transform: translateY(0);
}

/* Modal Header - Color will be set dynamically via JavaScript */
.ai-modal-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 10px 14px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ai-modal-header-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-modal-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ai-modal-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-modal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-modal-name {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-modal-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.ai-modal-role {
  font-size: 11px;
  opacity: 0.9;
}

.ai-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.ai-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-modal-menu-container {
  position: relative;
}

.ai-modal-menu-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
}

.ai-modal-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-modal-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.ai-modal-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ai-modal-menu-item {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2937;
  transition: background 0.2s ease;
}

.ai-modal-menu-item:hover {
  background: #f3f4f6;
}

.ai-modal-menu-item span {
  font-size: 16px;
}

/* Modal Content */
.ai-modal-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-modal-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat Tab */
.ai-chat-tab {
  display: flex;
  flex-direction: column;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat-message {
  display: flex;
  max-width: 80%;
  animation: slideInMessage 0.3s ease;
}

.ai-chat-message-user {
  align-self: flex-end;
}

.ai-chat-message-assistant {
  align-self: flex-start;
}

.ai-chat-message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-chat-message-user .ai-chat-message-content {
  background: #4f46e5; /* Will be overridden by dynamic style */
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-chat-message-assistant .ai-chat-message-content {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

.ai-chat-message-content ol,
.ai-chat-message-content ul {
  margin: 8px 0;
  padding-left: 24px;
}

.ai-chat-message-content ol {
  list-style-type: decimal;
}

.ai-chat-message-content ul {
  list-style-type: disc;
}

.ai-chat-message-content li {
  margin: 4px 0;
  line-height: 1.5;
}

.ai-chat-message-content strong {
  font-weight: 700;
  color: #111827;
}

.ai-chat-message-content em {
  font-style: italic;
}

/* Thinking indicator styles */
.ai-chat-thinking .ai-chat-message-content {
  background: #f3f4f6;
  color: #6b7280;
  font-style: italic;
}

.thinking-dots {
  display: inline-block;
}

.thinking-dots span {
  display: inline-block;
  animation: thinkingDot 1.4s infinite;
  opacity: 0;
}

.thinking-dots span:nth-child(1) {
  animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes thinkingDot {
  0%, 60%, 100% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

.ai-chat-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.ai-chat-attach-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.ai-chat-attach-btn:hover {
  background: #f3f4f6;
}

.ai-chat-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.ai-chat-input:focus {
  border-color: #4f46e5;
}

.ai-chat-send-btn {
  background: #4f46e5; /* Will be overridden by inline style from JavaScript */
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ai-chat-send-btn:hover {
  background: #4338ca;
  opacity: 0.9;
}

/* Voice Tab */
.ai-voice-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.ai-voice-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-voice-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-voice-tab-button {
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.5px;
  position: relative;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.ai-voice-tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Tab Navigation */
.ai-modal-tabs {
  display: flex;
  border-top: 1px solid #e5e7eb;
  background: white;
  border-radius: 0 0 20px 20px;
}

.ai-modal-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  margin: 0;
}

.ai-modal-tab:hover {
  background: #f9fafb;
}

.ai-modal-tab-active {
  background: #f9fafb;
}

.ai-modal-tab-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #4f46e5; /* Will be overridden by dynamic style */
}

.ai-modal-tab-icon {
  font-size: 18px;
  line-height: 1;
}

.ai-modal-tab-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
}

.ai-modal-tab-active .ai-modal-tab-label {
  color: #4f46e5; /* Will be overridden by dynamic style */
}

/* Voice button styles in modal */
.ai-voice-tab-button .ai-assistant-image-container {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  margin-right: 15px;
}

.ai-voice-tab-button .ai-assistant-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.ai-voice-tab-button .ai-assistant-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  pointer-events: none;
}

.ai-voice-tab-button .wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: none;
}

.ai-voice-tab-button .wave-1 {
  animation-delay: 0s;
}

.ai-voice-tab-button .wave-2 {
  animation-delay: 0.5s;
}

.ai-voice-tab-button .wave-3 {
  animation-delay: 1s;
}

@keyframes waveAnimation {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.ai-voice-tab-button .ai-assistant-waves.active .wave {
  animation: waveAnimation 2s infinite ease-out;
}

.ai-voice-tab-button .ai-assistant-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 80px;
}

.ai-voice-tab-button .ai-assistant-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.ai-voice-tab-button .ai-assistant-timer {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

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

/* Responsive Modal */
@media screen and (max-width: 768px) {
  .ai-modal-container {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    right: 0;
  }

  .ai-modal-header {
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .ai-modal-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .ai-modal-tab-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ai-chat-tab {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .ai-chat-input-container {
    padding: 8px 12px;
    border-top: none;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: white;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Ensure input stays above keyboard */
  @supports (-webkit-touch-callout: none) {
    .ai-chat-input-container {
      position: -webkit-sticky;
      position: sticky;
    }
  }

  .ai-chat-input {
    padding: 8px 12px;
  }

  .ai-modal-tabs {
    display: none !important;
  }
}

/* Ensure new buttons are visible - override Vapi hiding rules */
.ai-modal-tab,
.ai-chat-send-btn,
.ai-chat-attach-btn,
.ai-voice-tab-button,
.ai-modal-close {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: auto !important;
  height: auto !important;
  position: relative !important;
  z-index: 100002 !important;
  transform: none !important;
  overflow: visible !important;
}

/* Ensure send button stays circular */
.ai-chat-send-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

/* Date/Time Picker Styles */
.ai-datetime-picker-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  max-width: 100%;
}

.ai-datetime-picker-label {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  display: block;
}

.ai-datetime-picker-date,
.ai-datetime-picker-time {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ai-datetime-picker-date:focus,
.ai-datetime-picker-time:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ai-datetime-picker-timezone {
  font-size: 12px;
  color: #6b7280;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  text-align: center;
}

.ai-datetime-picker-submit {
  padding: 12px 24px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  align-self: flex-start;
}

.ai-datetime-picker-submit:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.ai-datetime-picker-submit:active {
  transform: translateY(0);
}

.ai-datetime-picker-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Responsive adjustments for date/time picker */
@media screen and (max-width: 768px) {
  .ai-datetime-picker-container {
    padding: 16px;
    gap: 12px;
  }
  
  .ai-datetime-picker-label {
    font-size: 14px;
  }
  
  .ai-datetime-picker-date,
  .ai-datetime-picker-time {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .ai-datetime-picker-submit {
    width: 100%;
    padding: 10px 20px;
  }
}
