/* --- BLACKSPADE ASİSTAN STİLLERİ --- */

#bs-chatbot-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 480px;
    height: 600px; /* Sabit Yükseklik */
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e1e1e1;
    display: flex; /* JS devreye girince görünür olur */
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

/* Header */
.bs-chat-header {
    background: #111;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border-bottom: 3px solid #000;
}

.bs-avatar { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 2px; display: flex; align-items: center; justify-content: center; }
.bs-avatar img { width: 100%; border-radius: 50%; }

.bs-header-info h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.bs-header-info p { margin: 0; font-size: 12px; color: #ccc; }

.bs-reset-btn {
    margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 12px; cursor: pointer;
}
.bs-reset-btn:hover { background: #fff; color: #000; }

/* Mesajlar */
.bs-messages-area {
    flex: 1; background: #f4f6f8; padding: 20px;
    overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}

.bs-msg {
    max-width: 85%; padding: 12px 16px; border-radius: 18px;
    font-size: 14px; line-height: 1.4; position: relative;
    animation: bsIn 0.3s ease; word-wrap: break-word;
}
.bs-msg.bot { background: #fff; color: #222; border: 1px solid #e0e0e0; border-bottom-left-radius: 2px; align-self: flex-start; }
.bs-msg.user { background: #000; color: #fff; border-bottom-right-radius: 2px; align-self: flex-end; }

/* Kontroller */
.bs-controls-area {
    background: #fff; padding: 15px; border-top: 1px solid #eee;
    min-height: 70px; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; align-items: center;
}

.bs-opt-btn {
    padding: 12px 20px; background: #fff; border: 2px solid #000; color: #000;
    border-radius: 30px; font-size: 13px; font-weight: 700; cursor: pointer;
    flex-grow: 1; max-width: 48%; transition: 0.2s;
}
.bs-opt-btn:hover { background: #000; color: #fff; }

.bs-input-group { display: flex; width: 100%; gap: 10px; align-items: center; }
.bs-num-input { flex: 1; padding: 12px 15px; border: 2px solid #eee; border-radius: 30px; font-size: 16px; outline: none; }
.bs-num-input:focus { border-color: #000; }
.bs-send-btn { width: 45px; height: 45px; background: #000; color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; justify-content: center; align-items: center; }

/* Animasyonlar */
.bs-typing { padding: 10px 15px; background: #fff; width: fit-content; border-radius: 18px; display: flex; gap: 5px; margin-bottom: 5px; border: 1px solid #e0e0e0; }
.bs-dot { width: 6px; height: 6px; background: #bbb; border-radius: 50%; animation: bsBnc 1.4s infinite ease-in-out both; }
.bs-dot:nth-child(1) { animation-delay: -0.32s; } .bs-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bsBnc { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

@media (max-width: 768px) { #bs-chatbot-wrapper { height: 550px; border-radius: 8px; } }