/* Chatbot Açma/Kapama Butonu (Sağ Alt Köşede Küçük Buton) */
/* #chatbotButton {
    content: "Yardımcı olamamı istermisiniz";
    position: fixed;
    bottom: 80px;
    right: 25px;
    background-color: #007bff;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#chatbotButton:hover {
    background-color: #0056b3;
} */

#chatbotButton {
    position: fixed;
    bottom: 0px;
    right: 100px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    transition: transform 0.2s ease;
}

#chatbotButton:hover {
    transform: scale(1.05);
}

#chatbotButton:active {
    transform: scale(0.95);
}

.image-icon-button {
    position: relative;
    display: inline-block;
}

.chatbot-img {
    width: 120px;
    height: auto;
    display: block;
}


/* Mobil uyum */
@media screen and (max-width: 600px) {
    .chatbot-img {
        width: 70px;
    }
}

.tab-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.tab-btn {
    flex: 1;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #eee;
    cursor: pointer;
    margin: 5px;

}

.tab-btn:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.tab-btn.active {
    background-color: #004A8F;
    color: #FFFFFF;
    font-weight: bold;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.tab-content {
    display: none;
    padding: 12px;
}

.tab-content.active {
    display: block;
}

.faq-list {
    list-style: none;
    overflow-y: auto;
    max-height: 45em;
    padding: 8px 8px 5px 8px;

}

#faqList li.selected {
    background-color: #CC9933;
    color: #fff;
    font-weight: bold;
}

/* İsteğe bağlı: Scrollbar özelleştirme */
.faq-list::-webkit-scrollbar {
    width: 6px;
}

.faq-list::-webkit-scrollbar-thumb {
    background-color: #004884;
    border-radius: 6px;
}



.faq-list li {
    font-sixe:12px;
    padding: 5px;
    margin: 10px 0;
    background: #f1f1f1;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;

}


.faq-list li:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

}

/* Popup */
/* Popup kapsayıcı */
#popupContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    width: 100%;
    max-width: 700px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

}

/* Başlık (soru) alanı */
#popupContainer .popup-header {
    background-color: #004A8F;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 18px;
}

/* İçerik alanı */
#popupContainer .popup-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.popup-footer {
    text-align: right;
}

/* Kapatma butonu */
.popup-close {
    background-color: #004884;
    margin: 10px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
}

.popup-close:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.popup .file-list {
    margin-top: 15px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.popup .file-list ul {
    list-style-type: 📎;
    padding-left: 20px;
}

.popup .file-list li a {
    color: #004A8F;
    text-decoration: underline;
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

.faq-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.faq-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.faq-popup-content h2.faq-question {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.faq-popup .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
}

.faq-popup .faq-answer {
    font-size: 16px;
    line-height: 1.6;
}

.faq-tab {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;

}


/* Chatbot Popup (İlk açıldığında gizli olacak) */
.chatbot-container {
    display: flex;
    flex-direction: column;
    /* İçerikleri dikey hizala */
    position: fixed;
    bottom: 115px;
    right: 12px;
    width: 380px;
    height: 705px;
    background: white;
    border-radius: 10px;
    border: 4px solid #004884;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/* Popup Başlığı */
.panel-heading {
    background-color: #004884 !important;
    color: white !important;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    position: relative;
    /* İkonları konumlandırabilmek için gerekli */
}

/* Kapatma ve Temizleme İkonları */
.close-icon,
.clear-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: white;
    padding: 5px;
    border-radius: 50%;
}

.close-icon {
    right: 10px;
    /* Kapatma ikonunu sağa yerleştiriyoruz */
}

.clear-icon {
    right: 40px;
    /* Temizleme ikonunu daha sağa yerleştiriyoruz */
}

.close-icon:hover,
.clear-icon:hover {
    background-color: #0056b3;
}

/* Kullanıcı Mesajı (Soru Kalın) */
.userMessage {
    background-color: #cce5ff;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    text-align: right;
    font-weight: bold;
}

/* Bot Mesajı */
.botMessage {
    background-color: #f1f1f1;
    width: auto;
    padding: 6px;
    border-radius: 5px;
    text-align: left;
    max-height: 500px;
    overflow-y: auto;
    }


/* Panel Footer Sabit Kalmaya Devam Edecek Ama Mesajları Engellemeyecek */
.panel-footer {
    display: flex;
    flex-direction: column;
    padding: 2px;
    border-top: 1px solid #fff;
    box-sizing: border-box;
    background: white;
    position: absolute;
    bottom: 0;
    width: 100%;

}

/* Textarea ve buton hizalaması */
.panel-footer .editable-div {
    width: 95%;
    resize: none;
    min-height: 30px;
    max-height: 70px;
    overflow-y: auto;
    margin-bottom: 4px;
}

.panel-footer button.sendButton {
    width: 95%;
    padding: 10px;
    margin-bottom: 2px;
}


.botMessage, .userMessage {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
    margin-bottom: 15px;
}


.editable-div {
    border: 2px solid #2f2f2f;
    width: 100%;
    height: 50px;
    min-height: 40px;
    /* Başlangıç yüksekliği */
    max-height: 80px;
    /* Aşırı büyümeyi önler */
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    margin-bottom: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    /* İçerik büyüdükçe kaydırma çubuğu çıkar */
}

.editable-div.empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    pointer-events: none;
}


.feedbackButton {
    background-color: #6ea1b0;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-sizing: border-box;
    margin: 0px 25px 5px 5px;
}

.noFeedbackButton {
    background-color: #d56a31;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.feedbackButton:hover {
    box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
}

.noFeedbackButton:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

/* Gönder Butonu */
button.sendButton {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-sizing: border-box;
    /* Padding içeriğin içine dahil edilir */
}

button.sendButton:hover {
    background-color: #218838;
}


#loading {
    position: relative;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #777;
    margin: 5px 0;
    display: none;
    width: 100%;
}

/* Chatbot Mesaj Alanı (Sorun Çözümü İçin Güncellendi) */
.messages {
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: calc(600px - 140px - 50px);
    margin-bottom: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}


/* Kaydırma Çubuğu Stili */
.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Loading mesajı için stil */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f1f1f1;
    border-radius: 10px;
    max-width: 200px;
    margin: 5px 0;
}

/* Loading GIF */
.typing-indicator img {
    width: 25px;
    height: 25px;
}

.btnQuestion {
    display: inline-block;
    width: 280px;
    padding: 3px 6px;
    margin: 2px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    /* Mavi buton */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.btnQuestion:hover {
    color: white;
    background-color: #0056b3;
    /* Hover efekti */
}

#popup {
    position: fixed;
    bottom: 30px;
    /* Butonun hemen üstüne çıkması için ayarla */
    right: 165px !important;
    /* Butonla aynı hizada tut */
    background: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    border: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 1000;
    /* Diğer elementlerin üstünde olmasını sağlar */

}

#close-popup {
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    /* Mutlak konumlandırma */
    top: 10px;
    /* Üstten 10px mesafe */
    right: 10px;
    /* Sağdan 10px mesafe */
}

#close-popup:hover {
    background-color: #007BFF;
    color: white;
}

/* Animasyon */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Tablet boyutları için (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .chatbot-container {
        width: 350px;
        height: 600px;
        bottom: 150px;
    }
       
}

/* Mobil boyutlar için (600px ve altı) */
@media screen and (max-width: 600px) {
    .chatbot-container {
        width: 90%;
        max-width: 100%;
        height: 70vh;
        bottom: 100px;
        right: 5%;
        left: 5%;
        border-radius: 8px;
    }
    
    .panel-heading {
        padding: 8px;
        font-size: 14px;
    }
    
    .messages {
        overflow-x: hidden;
    }
    .botMessage, .userMessage {
        max-width: 100%;
        width: 100%;
        font-size: 14px;
        padding: 6px;
    }
    
    .editable-div {
        font-size: 14px;
        padding: 6px;
        max-width: 100%;
    }
    
    button.sendButton {
        padding: 8px;
        font-size: 14px;
    }
    
    .feedbackButton, .noFeedbackButton {
        padding: 4px 6px;
        font-size: 12px;
    }
}

/* Çok küçük ekranlar için (360px ve altı) */
@media screen and (max-width: 360px) {
    .chatbot-container {
        height: 65vh;
        bottom: 80px;
    }
        
}
