 /* Genel Ayarlar */
 body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

/* Ana sohbet kartı */
.app-chat {
    width: 100%;
    max-width: 100%;   /* kart genişliği container'da ayarlanır */
    height: 600px;     /* SOHBET KARTININ SABİT YÜKSEKLİĞİ */
    display: flex;
    flex-direction: column; /* header, body, footer dikey sıralama */
    border-radius: .5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;  /* taşmaları gizle */
}

/* Header */
.chat-history-header {
    background-color: #0C88B1;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-history-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Mesajlar gövdesi */
.chat-history-body {
    flex: 1;            /* BODY alanı dikeyde esneyebilir */
    overflow-y: hidden;   /* Çok mesaj olursa dikeyde kaydırma çıksın */
    background-color: #eaeaea;
    padding: 1rem;
}

/* Mesaj yapıları */
.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}
.chat-message-left {
    justify-content: flex-start;
}
.chat-message-right {
    justify-content: flex-end;
}

/* Mesaj balonları */
.chat-message-text {
    padding: 0.3rem 0.6rem; /* Daha az iç boşluk */
    border-radius: 12px; /* Köşeleri biraz daha küçük yap */
    max-width: 250px; /* Genişlik ayarı */
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.2; /* Yazı satır yüksekliğini azalt */
    box-sizing: border-box;
}

.chat-message-left .chat-message-text {
    background: #ffffff; 
    color: #333333;
    border-radius: 16px 16px 16px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.chat-message-right .chat-message-text {
    background: #0C88B1;
    color: #ffffff;
    border-radius: 16px 16px 0 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: auto;
}
.chat-message-text small {
    display: block;
    margin-top: 0.1rem; /* Daha az boşluk */
    font-size: 0.6rem; /* Zaman bilgisi için daha küçük yazı */
    color: #5e5e55;
}

/* Footer (Mesaj Gönderme Alanı) */
.chat-history-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.chat-history-footer input {
    border: 1px solid #ccc;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: 100%;
    outline: none;
}

.chat-history-footer button {
    background-color: #0C88B1;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-left: 0.5rem;
}
.chat-history-footer button:hover {
    background-color: #076a91;
}
.typing-indicator {
    display: flex;
    align-items: center;
    height: 24px; /* Gösterge yüksekliği */
}

.typing-indicator span {
    background-color: #ccc;
    border-radius: 50%;
    display: block;
    height: 8px; /* Nokta boyutu */
    margin: 0 2px; /* Noktalar arası boşluk */
    width: 8px; /* Nokta boyutu */
    animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}
