:root {
    --primary-color: #1E1E1E;
    --secondary-color: #333333;
    --text-color: rgb(209, 213, 219);
    --background-color: #121212;
    --chat-bg-color: #18181B;
    --input-border-color: #444444;
    --hover-color: #555555;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Sohbet Penceresi Stili */
#chatgpt-assistant-header {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 2px 4px var(--shadow-color);
}

#chatgpt-assistant-header p {
    margin: 0 0 0 5px;
    display: flex;
    align-items: center;
}

/* Sohbet Mesajları Alanı */
#chatgpt-assistant-messages {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--chat-bg-color);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px var(--shadow-color);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--background-color);
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE ve Edge için */
    scrollbar-width: thin; /* Firefox için */
}

/* Webkit (Chrome, Safari, Edge) için scrollbar stilleri */
#chatgpt-assistant-messages::-webkit-scrollbar {
    width: 8px;
}

#chatgpt-assistant-messages::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

#chatgpt-assistant-messages::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
    border: 2px solid var(--background-color);
}

#chatgpt-assistant-messages::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Giriş Alanı Konteyneri */
#chatgpt-assistant-input-container {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid var(--input-border-color);
    background-color: var(--background-color);
    box-shadow: 0 -2px 4px var(--shadow-color);
}

/* Mesaj Kutuları */
.bot-message {
    align-self: flex-start;
    word-wrap: break-word;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 0px 15px 15px 15px;;
    box-shadow: 0 1px 3px var(--shadow-color);
    background-color: #242529;
    color: var(--text-color);
    font-weight: 300;
    width: fit-content;
    max-width: 70%;
}

.bot-message a {
    background-color: transparent;
    text-decoration: none;
    color: #00ff0f;
    font-weight: 600;
}

.user-message {
    color: var(--text-color);
    font-weight: bold;
}

/* Bot ve Kullanıcı Adı Etiketleri */
.message-bot {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    gap: 4px;
}

.message-bot img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}


.message-user {
    display: inline-block;
    padding: 0px 3px 0px 0px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
}

/* Giriş Kutusu 
#chatgpt-assistant-input,
.form-group input[type="text"],
.form-group input[type="email"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
}*/

/* Form Grupları */
.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Giriş Kutuları */
#chatgpt-assistant-user-info input[type="text"], input[type="email"] {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #292929;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Giriş Kutusu Odaklanma Efekti */
#chatgpt-assistant-user-info input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    background-color: #333333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Sohbet Başlat Butonu */
#start-chat-btn {
    background-color: #3a3a3a; 
    color: #e0e0e0;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; 
}

/* SVG Konuşma Baloncuğu İkonu */
#start-chat-btn svg {
    width: 20px; /* Uygun genişlik */
    height: 20px; /* Uygun yükseklik */
    stroke: #e0e0e0; /* İkon rengi */
    transition: stroke 0.3s ease;
}

/* Buton Hover Efekti */
#start-chat-btn:hover {
    background-color: #4a4a4a;
    transform: translateY(-2px);
}

#start-chat-btn:hover svg {
    stroke: #ffffff; /* İkonun hover rengi */
}

/* Mobil Uyumluluk */
@media screen and (max-width: 768px) {
    .bubble-form {
        width: 90%;
    }
}

#chatgpt-assistant-user-info {
    padding: 10px;
}

/* Sohbet Kapatma Butonu */
#close-chat-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

#close-chat-btn:hover {
    color: #ddd;
}

.user-message-container {
    display: flex;
    flex-direction: column; /* Header ve content'i dikey hizalar */
}

.user-message-container .message-header {
    display: flex;
    align-items: center; /* message-user ve tempUserIdentifier'ı yan yana hizalar */
    flex-wrap: nowrap; /* Header içindeki elemanların taşmasını engeller */
    justify-content: flex-end;
}

.user-message-container .message-user {
    font-weight: bold;
    white-space: nowrap;
}

.user-message-container .message-content {
    margin-top: 10px; /* Header ile içerik arasına boşluk ekler */
    padding: 10px;
    border-radius: 15px 0px 15px 15px;;
    font-size: 16px;
    font-weight: 300;
    color: #B1B4BB;
    background-color: #2D2E34;
    word-break: break-word;
    width: fit-content; /* Sadece içeriği kadar genişlik alır */
    align-self: flex-end; /* Mesajı sola hizalar */
    max-width: 70%;
}

.user-message-container .message-author {
    font-weight: bold;
    white-space: nowrap; /* "Soru" ifadesinin satır kırmamasını sağlar */
}

.bot-message-container .message-content {
    display: inline-block;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
}

/* Remove .chatbot-standard-wrapper related styles */
.chatbot-standard-wrapper {
    display: none; /* Hide any remaining standard view elements */
}

/* Sohbet kutusunun temel yapısı */
.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;   
    max-height: 400px;
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Gömülü görünümde kapat butonunu gizle */
.chatbot-embed-wrapper #close-chat-btn {
    display: none;
}

/* Gömülü görünümde header'ı ortalı göster */
.chatbot-embed-wrapper #chatgpt-assistant-header {
    text-align: center;
    padding: 10px;
}

.chatbot-embed-wrapper #chatgpt-assistant-header img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    border-radius: 50%;
}

.chatbot-embed-wrapper #chatgpt-assistant-header p {
    width: 100%;
}


.user-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        margin-right: 5px;
        vertical-align: middle;
    }
    
.user-initials {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        margin-right: 8px;
        color: white;
        font-weight: bold;
        font-size: 10px;
        vertical-align: middle;
}
    
.message-header {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        margin-top: 10px;
    }
    
.message-user {
        margin-right: 3px;
        font-weight: bold;
}

/* Gömülü görünüm için özel stiller */
.chatbot-embed-wrapper {
    width: 100%;
    height: 75vh; /* Tam ekran yükseklik */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Taşmaları engelle */
}

.chatbot-embed-wrapper .chatbot-container {
    width: 100%;
    height: 100%;
    max-height: none; /* max-height sınırlamasını kaldır */
    display: flex;
    flex-direction: column;
}

/* Header sabit yükseklik */
.chatbot-embed-wrapper #chatgpt-assistant-header {
    height: 60px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mesajlar alanı esnek yükseklik */
.chatbot-embed-wrapper #chatgpt-assistant-messages {
    flex: 1;
    height: 0; /* Önemli: flex-grow çalışması için */
    min-height: 0; /* Önemli: scroll çalışması için */
    overflow-y: auto;
}

/* Input container sabit yükseklik */
.chatbot-embed-wrapper #chatgpt-assistant-input-container {
    height: 70px;
    flex: 0 0 auto;
    padding: 10px 15px;
    background: var(--background-color);
    border-top: 1px solid var(--input-border-color);
}

/* Mobil için ayarlamalar */
@media screen and (max-width: 768px) {
    .chatbot-embed-wrapper {
        height: 100vh; /* Mobilde tam ekran */
        position: fixed; /* Sayfadan bağımsız tam ekran */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
    }
}

.chat-container {
    width: 400px;
    max-width: 90%;
    background-color: #2D2D2D;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-login-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.chat-login-button:hover {
    background-color: #272727;
    color: white;
}

/* Mikrofon girişi için özel stiller */
/* Mikrofon Butonu */
.mic-btn {
    background-color: #0e0e0e;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mic-btn:hover {
    background-color: #0e0e0ec6;
}

.mic-btn:active {
    background-color: #ff0000cb;
}

.mic-btn svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

.mic-btn.listening {
    animation: pulse 1.1s infinite;
    color: #ff0000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Soru girişi için özel stiller */
/* Input Container */
.input-container {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    border-radius: 50px;
    padding: 5px 3px 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex: 1;
}

/* Input Alanı */
#chatgpt-assistant-input-container .input-container input {
    flex: 1;
    background-color: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    padding: 5px 10px;
}

/* Submit Butonu */
#chatgpt-assistant-input-container .input-container .submit-btn {
    background-color: #fafafa !important;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

#chatgpt-assistant-input-container .input-container .submit-btn:hover {
    background-color: #fafafac6 !important;
}

#chatgpt-assistant-input-container .input-container .submit-btn:active {
    background-color: #fafafa9a !important;
}

#chatgpt-assistant-input-container .input-container .submit-btn svg{
    fill: #0e0e0e;
    width: 20px;
    height: 20px;
}

#info-chat-render {
    display: flex;
    justify-content: center; /* Yatay ortalama */
    align-items: center; /* Dikey ortalama */
    text-align: center; /* Metni ortalama */
    padding: 10px;
    font-size: 10px;
}

.bot-message-container-initial-greeting .message-bot img{
    width: 44px !important;
    height: 44px !important;
}