:root {
    --chatbot-primary: #8b5cf6;
    --chatbot-bg: #151c2c; /* Ana arkaplan ile uyumlu */
    --chatbot-header-bg: #1e293b; /* Ana arkaplan ile uyumlu */
    --chatbot-text: #e0e0e0;
    --chatbot-bot-msg-bg: #2a2a41;
    --chatbot-option-bg: rgba(139, 92, 246, 0.1);
    --chatbot-option-hover-bg: rgba(139, 92, 246, 0.2);
}

.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    left: 35px;
    width: 60px;
    height: 60px;
    background-color: var(--chatbot-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1051;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.chatbot-toggler:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.chatbot-toggler .bi-x-lg {
    display: none;
}

.show-chatbot .chatbot-toggler .bi-robot {
    display: none;
}

.show-chatbot .chatbot-toggler .bi-x-lg {
    display: block;
}

.chatbot-window {
    position: fixed;
    bottom: 110px;
    left: 35px;
    width: 380px;
    max-height: 520px;
    background-color: var(--chatbot-bg);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1052;
}

.show-chatbot .chatbot-window {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background-color: var(--chatbot-header-bg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--chatbot-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
}

.chatbot-title p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.chatbot-title span {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.chatbot-header .close-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.2s ease;
}
.chatbot-header .close-btn:hover {
    color: white;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.bot {
    background-color: var(--chatbot-bot-msg-bg);
    color: var(--chatbot-text);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chatbot-options {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-button {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.option-button:hover {
    background-color: var(--chatbot-option-bg);
    color: #e9d5ff;
    border-color: var(--chatbot-primary);
}

@media (max-width: 490px) {
    .chatbot-toggler {
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .chatbot-window {
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        transform-origin: bottom center;
    }
}