/* IN2 FACE STUDIOS — Tento IA Chatbot Stylesheet */
:root {
    --bot-cyan: #00E5FF;
    --bot-magenta: #EA00FF;
    --bot-green: #C8FF00;
    --bot-dark: rgba(8, 10, 13, 0.97);
    --bot-border: rgba(0, 229, 255, 0.2);
    --bot-text-body: #B0ADA5;
    --bot-text-bright: #F3F3F3;
  }

  .chatbot-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #020202;
    border: 1px solid var(--bot-cyan);
    color: #fff;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 24px;
  }

  .chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    border-color: var(--bot-cyan) !important;
    background: #05070a !important;
  }

  .chatbot-toggle:focus,
  .chatbot-toggle:active,
  .chatbot-toggle.active {
    background: #05070a !important;
    color: #00E5FF !important;
    outline: none !important;
    border-color: var(--bot-cyan) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5) !important;
  }

  .chatbot-toggle-icon {
    font-size: 24px;
    line-height: 1;
  }

  .chatbot-pulse {
    position: absolute;
    inset: -3px;
    border: 1px solid var(--bot-cyan);
    border-radius: 50%;
    animation: botPulseGlobal 2s infinite;
    opacity: 0;
    pointer-events: none;
  }

  @keyframes botPulseGlobal {
    0% {
      transform: scale(1);
      opacity: 0.8;
    }

    100% {
      transform: scale(1.25);
      opacity: 0;
    }
  }

  .chatbot-window {
    position: fixed;
    bottom: 104px;
    right: 32px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--bot-dark);
    border: 1px solid var(--bot-border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 229, 255, 0.05);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: auto;
  }

  .chatbot-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .chatbot-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: var(--bot-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--bot-green);
    animation: botBlink 1.5s step-start infinite;
  }

  @keyframes botBlink {
    50% {
      opacity: 0.3;
    }
  }

  .chatbot-title {
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
  }

  .chatbot-subtitle {
    color: #626d7f;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
  }

  .chatbot-close-btn {
    background: none;
    border: none;
    color: #626d7f;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
  }

  .chatbot-close-btn:hover {
    color: #fff;
  }

  .chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-image: linear-gradient(rgba(0, 229, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
  }

  .chatbot-messages::-webkit-scrollbar {
    width: 4px;
  }

  .chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.2);
    border-radius: 2px;
  }

  .chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .chat-msg.bot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--bot-text-body);
    align-self: flex-start;
    border-left: 2px solid var(--bot-cyan);
  }

  .chat-msg.user {
    background: rgba(234, 0, 255, 0.06);
    border: 1px solid rgba(234, 0, 255, 0.15);
    color: #fff;
    align-self: flex-end;
    border-right: 2px solid var(--bot-magenta);
  }

  .chat-msg strong {
    color: #fff;
  }

  .chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    width: 100%;
    margin-top: 8px;
  }

  .chat-option-btn {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--bot-cyan);
    padding: 10px 14px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
    max-width: 90%;
  }

  .chat-option-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--bot-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    transform: translateX(3px);
  }

  .chat-input {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 12px;
  }

  #chatbot-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    transition: border-color 0.2s;
  }

  #chatbot-input:focus {
    border-color: var(--bot-cyan);
    outline: none;
  }

  #chatbot-send {
    background: var(--bot-cyan);
    color: #000;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  #chatbot-send:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  /* Typing Indicator animation */
  .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--bot-cyan);
    border-radius: 2px;
    align-self: flex-start;
    margin-bottom: 8px;
  }

  .typing-dot {
    width: 6px;
    height: 6px;
    background: var(--bot-cyan);
    border-radius: 50%;
    animation: botBounce 1.4s infinite ease-in-out both;
  }

  .typing-dot:nth-child(1) {
    animation-delay: -0.32s;
  }

  .typing-dot:nth-child(2) {
    animation-delay: -0.16s;
  }

  @keyframes botBounce {

    0%,
    80%,
    100% {
      transform: scale(0);
    }

    40% {
      transform: scale(1);
    }
  }

  /* Proactive greeting bubble styles */
  .chatbot-greeting-bubble {
    position: fixed;
    bottom: 104px;
    right: 32px;
    background: var(--bot-dark);
    border: 1px solid var(--bot-cyan);
    border-radius: 4px;
    padding: 16px 20px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99998;
    cursor: pointer;
  }

  .chatbot-greeting-bubble.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .chatbot-greeting-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #626d7f;
    font-size: 11px;
    cursor: pointer;
  }

  .chatbot-greeting-close:hover {
    color: #fff;
  }

  .chatbot-greeting-avatar {
    font-size: 20px;
    flex-shrink: 0;
  }

  .chatbot-greeting-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--bot-text-body);
  }

  @media (max-width: 480px) {
    .chatbot-window {
      width: calc(100vw - 32px);
      height: 480px;
      right: 16px;
      bottom: 88px;
    }

    .chatbot-toggle {
      right: 16px;
      bottom: 16px;
    }

    .chatbot-greeting-bubble {
      right: 16px;
      bottom: 88px;
      width: calc(100vw - 32px);
    }
  }
