/* OwnerOps.pro Chatbot Widget Styles */

#ownerops-chatbot {
  --chatbot-amber: #F59E0B;
  --chatbot-bg: #0F1318;
  --chatbot-header-bg: #161C24;
  --chatbot-border: rgba(255,255,255,0.1);
  --chatbot-text: #F0EDE8;
  --chatbot-text-muted: #B2B6BE;
  font-family: 'DM Sans', sans-serif;
}

/* Chat Bubble */
.chatbot-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--chatbot-amber);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
}

.chatbot-bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(245,158,11,0.4);
}

.chatbot-bubble svg {
  width: 24px;
  height: 24px;
  color: #000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-bubble .close-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

#ownerops-chatbot.open .chatbot-bubble .chat-icon {
  opacity: 0;
  transform: rotate(90deg);
}

#ownerops-chatbot.open .chatbot-bubble .close-icon {
  opacity: 1;
  transform: rotate(0);
}

/* Chat Panel */
.chatbot-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 360px;
  max-height: 520px;
  background: var(--chatbot-bg);
  border: 1px solid var(--chatbot-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#ownerops-chatbot.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chatbot-header {
  height: 56px;
  background: var(--chatbot-header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chatbot-amber);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--chatbot-text);
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--chatbot-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.chatbot-close:hover {
  color: var(--chatbot-text);
}

/* Messages Container */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

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

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* Messages */
.chatbot-message {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message.bot {
  align-items: flex-start;
}

.chatbot-message.user {
  align-items: flex-end;
}

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

.bot-bubble {
  background: var(--chatbot-header-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px 12px 12px 4px;
  color: var(--chatbot-text-muted);
}

.bot-bubble strong {
  color: var(--chatbot-text);
}

.user-bubble {
  max-width: 75%;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px 12px 4px 12px;
  color: var(--chatbot-amber);
}

/* Option Buttons */
.message-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.option-btn {
  background: var(--chatbot-header-bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--chatbot-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--chatbot-amber);
  color: var(--chatbot-amber);
}

.option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Styles */
.chatbot-form {
  margin-top: 8px;
}

.chatbot-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-input {
  background: var(--chatbot-header-bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--chatbot-text);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.chatbot-input:focus {
  border-color: var(--chatbot-amber);
}

.chatbot-input::placeholder {
  color: var(--chatbot-text-muted);
  opacity: 0.7;
}

.chatbot-submit-btn {
  background: var(--chatbot-header-bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--chatbot-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-submit-btn:hover:not(:disabled) {
  border-color: var(--chatbot-amber);
  color: var(--chatbot-amber);
}

.chatbot-submit-btn.primary {
  background: var(--chatbot-amber);
  border-color: var(--chatbot-amber);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chatbot-submit-btn.primary:hover:not(:disabled) {
  background: #D97706;
  border-color: #D97706;
  color: #000;
}

.chatbot-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  font-size: 12px;
  color: var(--chatbot-text-muted);
  margin: 0;
  text-align: center;
}

.cal-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--chatbot-amber);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cal-link:hover {
  opacity: 0.8;
}

.privacy-note {
  font-size: 11px;
  color: var(--chatbot-text-muted);
  opacity: 0.7;
  margin: 4px 0 0;
  text-align: center;
  line-height: 1.4;
}

.privacy-note a {
  color: var(--chatbot-text-muted);
  text-decoration: underline;
}

/* Other State Input */
.other-state-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.other-state-input .chatbot-input {
  flex: 1;
}

.other-state-input .chatbot-submit-btn {
  flex-shrink: 0;
}

/* Demo CTA Block */
.demo-cta-block {
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.02) 100%);
  border: 2px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
}

.demo-cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.demo-cta-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: #F0EDE8;
  margin: 0 0 12px;
}

.demo-cta-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #B2B6BE;
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}

.demo-cta-btn {
  background: #F59E0B;
  border: none;
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 36px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(245,158,11,0.25);
}

.demo-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(245,158,11,0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chatbot-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
  }

  .chatbot-bubble {
    bottom: 16px;
    right: 16px;
  }

  #ownerops-chatbot.open .chatbot-bubble {
    bottom: calc(70vh + 8px);
  }

  .demo-cta-block {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .demo-cta-content p {
    max-width: 100%;
  }

  .demo-cta-btn {
    width: 100%;
  }
}
