/* Chatbox kapsayıcısı (her zaman sağ alt, sabit) */
#eyedius-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Chat kutusu (butonun hemen üstünde açılır) */
#chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    height: 540px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}


/* Chat açma butonu (card gibi görünüm) */
.chat-toggle-btn {
    background-color: #ffffff;
    color: #1e88e5;
    border: 2px solid #1e88e5;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    background-color: #1e88e5;
    color: #ffffff;
}

/* Chat üst başlığı */
.chat-header {
    background: linear-gradient(135deg, #1E88E5, #00ACC1);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 1.2em;
    position: relative;
}

.chat-close-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mode-buttons {
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    background: #f0f0f0;
}

.mode-buttons button {
    flex: 1;
    margin: 0 3px;
    padding: 8px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #1E88E5, #00ACC1);
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
}

.message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: #ff6f00;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background: #eaeaea;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

.chat-input-container input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.chat-input-container button {
    margin-left: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #1E88E5, #00ACC1);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.selectable {
    background: #ddd;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    #chat-container {
        width: 90vw;
        height: 70vh;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}