/* ============================================
   CHATBOT CSS - Mobil Optimizasyonlu
   ============================================ */
/* Chatbot container'ı en üst katmana çıkar */
.chatbot-container {
  position: fixed !important;  /* Sabit kalsın */
  z-index: 9999 !important;    /* Siteler arası üstte */
}

/* Toggle butonunu da üstte tut */
.chatbot-toggle {
  position: fixed !important;
  z-index: 10000 !important;   /* Container'dan daha üstte */
}
    .chatbot-toggle {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50%;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 1000;
    }

    .chatbot-toggle:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    }

    .chatbot-toggle svg {
      width: 28px;
      height: 28px;
      fill: white;
    }

    .chatbot-toggle.active {
      background: #f44336;
    }

    /* CHATBOT CONTAINER */
    .chatbot-container {
      position: fixed;
      bottom: 100px;
      right: 25px;
      width: 410px;
      max-width: calc(100vw - 50px);
      height: 550px;
      max-height: calc(100vh - 150px);
      background: white;
      border-radius: 20px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 999;
      animation: slideUp 0.3s ease;
    }

    .chatbot-container.active {
      display: flex;
    }

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

    /* HEADER */
    .cb-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .cb-avatar {
      width: 45px;
      height: 45px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }

    .cb-header-text h3 {
      font-size: 20px;
      color: white;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .cb-header-text p {
      font-size: 13px;
      opacity: 0.9;
    }

    /* MESSAGES */
    .cb-messages {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      background: #f8f9fa;
    }

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

    .cb-messages::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 3px;
    }

    .cb-msg {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
      animation: fadeIn 0.3s ease;
    }

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

    .cb-msg.user {
      justify-content: flex-end;
    }

    .cb-bot-avatar {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .cb-bubble {
      background: white;
      padding: 12px 16px;
      border-radius: 18px;
      max-width: 75%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      line-height: 1.5;
      font-size: 14px;
      white-space: pre-line;
    }

    .cb-msg.user .cb-bubble {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
    }

    /* OPTIONS */
    .cb-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }

    .cb-btn {
      background: white;
      color: #00008B;
      padding: 5px 12px;
      border-radius: 12px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 100;
      transition: all 0.2s ease;
      text-align: left;
    }

    /* TYPING */
    .cb-typing {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
    }

    .cb-typing-dots {
      background: white;
      padding: 12px 16px;
      border-radius: 18px;
      display: flex;
      gap: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .cb-typing-dot {
      width: 8px;
      height: 8px;
      background: #667eea;
      border-radius: 50%;
      animation: bounce 1.4s infinite ease-in-out both;
    }

    .cb-typing-dot:nth-child(1) {
      animation-delay: -0.32s;
    }

    .cb-typing-dot:nth-child(2) {
      animation-delay: -0.16s;
    }

    @keyframes bounce {
      0%, 80%, 100% {
        transform: scale(0);
      }
      40% {
        transform: scale(1);
      }
    }

    /* MOBILE */
    @media (max-width: 480px) {
      .chatbot-container {
        bottom: 90px;
        right: 10px;
        width: calc(100vw - 20px);
        height: 500px;
      }

      .chatbot-toggle {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
      }
    }
    /* E-İhracat Chatbot CSS */

/* ================================
   TOGGLE BUTTON
   ================================ */
.eihracat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eihracat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.eihracat-toggle-btn.active {
    background: #dc3545;
}

.eihracat-icon {
    font-size: 28px;
    transition: all 0.3s ease;
}

/* ================================
   CHATBOT CONTAINER
   ================================ */
.eihracat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 550px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9998;
    overflow: hidden;
}

.eihracat-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ================================
   HEADER
   ================================ */
.eihracat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.eihracat-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.eihracat-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* ================================
   MESSAGES
   ================================ */
.eihracat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

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

.eihracat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* ================================
   MESSAGE STYLES
   ================================ */
.eihracat-msg {
    display: flex;
    margin-bottom: 15px;
    animation: eihracatSlideIn 0.3s ease;
}

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

.eihracat-msg.bot {
    align-items: flex-start;
}

.eihracat-msg.user {
    justify-content: flex-end;
}

.eihracat-bot-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.eihracat-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 240px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eihracat-msg.bot .eihracat-bubble {
    border-bottom-left-radius: 4px;
    background: white;
    color: #333;
}

.eihracat-msg.user .eihracat-bubble {
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ================================
   TYPING INDICATOR
   ================================ */
.eihracat-typing {
    display: flex;
    align-items: center;
}

.eihracat-typing-dots {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eihracat-typing-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin: 0 3px;
    animation: eihracatTypingBounce 1.4s infinite ease-in-out;
}

.eihracat-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.eihracat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.eihracat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes eihracatTypingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* ================================
   BUTTONS
   ================================ */
.eihracat-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eihracat-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.eihracat-btn:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* ================================
   RESULT BOX
   ================================ */
.eihracat-result {
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    animation: eihracatSlideIn 0.4s ease;
}

.eihracat-result.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.eihracat-result.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.eihracat-result-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.eihracat-result-msg {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.eihracat-result-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.eihracat-result-list li {
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 13px;
}

.eihracat-result-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #28a745;
}

/* ================================
   ACTION BUTTONS
   ================================ */
.eihracat-action-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.eihracat-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.eihracat-action-btn.yes {
    background: #28a745;
    color: white;
}

.eihracat-action-btn.yes:hover {
    background: #218838;
    transform: translateY(-2px);
}

.eihracat-action-btn.no {
    background: #6c757d;
    color: white;
}

.eihracat-action-btn.no:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.eihracat-action-btn.restart {
    background: #667eea;
    color: white;
    width: 100%;
}

.eihracat-action-btn.restart:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 480px) {
    .eihracat-container {
        bottom: 90px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .eihracat-toggle-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .eihracat-icon {
        font-size: 24px;
    }
}