/* ===================================================================
   AQUABOT - Chatbot Widget Stilleri
   Sitenize eklemek için: <link rel="stylesheet" href="assets/css/aquabot.css">
   =================================================================== */

#aquabot-container * {
    box-sizing: border-box;
}

#aquabot-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1D9E75;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: transform 0.2s;
}
#aquabot-toggle-btn:hover { transform: scale(1.06); }
#aquabot-toggle-btn svg { width: 28px; height: 28px; fill: #fff; }

#aquabot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
#aquabot-window.open { display: flex; }

#aquabot-header {
    background: #1D9E75;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
#aquabot-header .ab-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
#aquabot-header .ab-avatar svg { width: 20px; height: 20px; fill: #fff; }
#aquabot-header .ab-info { flex: 1; min-width: 0; }
#aquabot-header .ab-name { color: #fff; font-size: 14px; font-weight: 600; margin: 0; }
#aquabot-header .ab-status { color: rgba(255,255,255,0.85); font-size: 12px; margin: 2px 0 0; }
#aquabot-close-btn {
    background: none; border: none; cursor: pointer;
    width: 28px; height: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
#aquabot-close-btn svg { width: 18px; height: 18px; fill: #fff; }

#aquabot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #F5F7F6;
}

.ab-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.ab-msg.bot { justify-content: flex-start; }
.ab-msg.user { justify-content: flex-end; }

.ab-bot-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: #1D9E75; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ab-bot-avatar svg { width: 14px; height: 14px; fill: #fff; }

.ab-bubble {
    max-width: 78%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.ab-msg.bot .ab-bubble {
    background: #fff;
    border: 1px solid #E5E8E6;
    border-bottom-left-radius: 4px;
    color: #222;
}
.ab-msg.user .ab-bubble {
    background: #1D9E75;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ab-bubble a { color: #0F6E56; text-decoration: underline; font-weight: 600; }
.ab-msg.user .ab-bubble a { color: #D7F2E8; }
.ab-bubble strong { font-weight: 600; }

.ab-links { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.ab-links a {
    display: inline-block;
    font-size: 13px;
}

.ab-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 34px;
    margin-top: -2px;
}
.ab-qr-btn {
    background: #fff;
    border: 1px solid #1D9E75;
    color: #0F6E56;
    border-radius: 18px;
    padding: 7px 13px;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.ab-qr-btn:hover { background: #E1F5EE; }

.ab-typing { display: flex; gap: 4px; padding: 4px 2px; }
.ab-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #1D9E75; opacity: 0.5;
    animation: ab-bounce 1s infinite;
}
.ab-typing span:nth-child(2) { animation-delay: 0.15s; }
.ab-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ab-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

#aquabot-input-area {
    padding: 12px;
    border-top: 1px solid #E5E8E6;
    display: flex;
    gap: 8px;
    background: #fff;
    flex-shrink: 0;
}
#aquabot-input {
    flex: 1;
    border: 1px solid #DADDD9;
    border-radius: 20px;
    padding: 9px 15px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}
#aquabot-input:focus { border-color: #1D9E75; }
#aquabot-send-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: #1D9E75; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
#aquabot-send-btn:hover { background: #0F6E56; }
#aquabot-send-btn svg { width: 16px; height: 16px; fill: #fff; }

@media (max-width: 480px) {
    #aquabot-window {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 86px;
        height: calc(100vh - 160px);
    }
    #aquabot-toggle-btn { right: 16px; bottom: 16px; }
}
