/* Chat pencere ikon stili */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #c1272d;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    width: 10%;
}

/* Chat pencere stili */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #ffffff00;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 101;

}

/* Chat pencere aktif olduğunda görünür */
.chat-window.active {
    display: flex;
}

/* Chat header stili */
.chat-header {
    background-color: #c1272d;
    color: white;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    position: relative;
}

/* Kapatma butonu stili */
.close-chat {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Chat gövde stili */
.chat-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column; /* Mesajlar alt alta sıralanır */
    background: linear-gradient(0deg, rgb(255, 255, 255), rgb(255, 218, 185));
    border: 3px solid #c1272d;
border-radius: 0 0 0 60px;    


}

/* Mesajlar */
.message {
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.client {
    background-color: #c1272d;
    color: #ffff;
    align-self: flex-start; /* Müşteri mesajını sola hizala */
    border-radius: 0 20px 20px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tatlı bir gölge */

}



/* Tıklanabilir URL'ler için stil */
.message a {
    color: #1a73e8; /* Bağlantı rengi (Google mavi rengi) */
    text-decoration: underline; /* Altı çizili bağlantılar */
}

.message a:hover {
    color: #0c66c2; /* Üzerine gelindiğinde bağlantı rengi */
    text-decoration: none; /* Üzerine gelindiğinde altı çizili olmaması */
}



.admin {
    background-color: #fff3e0;
    color: black;
    align-self: flex-end; /* Admin mesajını sağa hizala */
    border-radius: 20px 0 20px 20px;

        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tatlı bir gölge */

}

/* Mesaj gönderme formu */
.message-form {
    display: flex;
    padding: 10px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    position: relative; /* Formun pozisyonunu ayarlamak için */
    bottom: 0; /* En altta sabitle */
    width: 100%; /* Formun pencere genişliği kadar olmasını sağlar */
    box-sizing: border-box; /* Padding ve border'ları genişliğe dahil et */
}

/* Mesaj input */
#message {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    outline: none;
    font-size: 14px;
}

#message:focus {
    border-color: #c1272d;
}

/* Gönder butonu */
#sendMessage {
    background-color: #c1272d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

#sendMessage:hover {
    background-color: #a82024;
}



#typingIndicator {
    display: none; /* Initially hidden */
    font-style: italic;
    color: #888;
}

/* Spinner animasyonu */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-left: 4px solid #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.message {
    /* Diğer stil kuralları */
}

.message-link {
    color: #1a73e8; /* Bağlantı rengi */
    text-decoration: underline; /* Altı çizili bağlantılar */
}

.message-link:hover {
    color: #0c66c2; /* Üzerine gelindiğinde bağlantı rengi */
    text-decoration: none; /* Üzerine gelindiğinde altı çizili olmaması */
}


