/* Chat overhaul özel stilleri — DashLite değişkenleriyle uyumlu, dark-mode dostu. */

/* Yanıt alıntısı */
.chat-reply-quote {
    border-left: 3px solid #6576ff;
    background: rgba(101, 118, 255, 0.08);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    font-size: 12px;
    cursor: pointer;
    display: block;
    max-width: 320px;
    overflow: hidden;
}

.chat-reply-quote strong {
    display: block;
}

.chat-reply-quote span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.75;
}

/* Tepki rozetleri */
.chat-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.chat-reactions .badge {
    border: 1px solid #e5e9f2;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
}

/* Hızlı tepki popover'ı */
.chat-quick-react {
    position: absolute;
    bottom: 100%;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 20px;
    padding: 4px 8px;
    display: flex;
    gap: 4px;
    z-index: 50;
}

.chat-quick-react button {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.chat-quick-react button:hover {
    transform: scale(1.3);
    background: #f5f6fa;
}

.chat-bubble {
    position: relative;
}

/* Aşağı atla pili */
.chat-jump-pill {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nk-chat-body {
    position: relative;
}

/* Mesaja atlayınca kısa vurgulama */
.chat-highlight .chat-bubble {
    animation: chat-highlight-anim 1.6s ease;
}

@keyframes chat-highlight-anim {
    0% { box-shadow: 0 0 0 3px rgba(101, 118, 255, 0.55); }
    100% { box-shadow: 0 0 0 3px rgba(101, 118, 255, 0); }
}

/* Emoji picker */
.chat-emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    width: 300px;
    z-index: 100;
}

.chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.chat-emoji-grid button {
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 3px;
    border-radius: 6px;
    cursor: pointer;
}

.chat-emoji-grid button:hover {
    background: #f5f6fa;
}

/* Mesaj içi arama paneli */
.chat-search-panel {
    position: absolute;
    top: 64px;
    right: 12px;
    width: 340px;
    z-index: 80;
}

.chat-search-results {
    max-height: 300px;
    overflow-y: auto;
}

.chat-search-result {
    border-radius: 6px;
    color: inherit;
}

.chat-search-result:hover {
    background: #f5f6fa;
}

/* Sürükle-bırak overlay'i */
.chat-drop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(101, 118, 255, 0.12);
    border: 2px dashed #6576ff;
    border-radius: 8px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-drop-overlay-inner {
    text-align: center;
    color: #6576ff;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat-drop-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: copy;
}

/* Resim önizlemesi */
.chat-image {
    max-width: 280px;
    max-height: 280px;
    border-radius: 8px;
    display: block;
}

/* Composer banner (yanıt/düzenleme) */
.chat-composer-banner {
    background: rgba(101, 118, 255, 0.06);
    border-left: 3px solid #6576ff;
    border-radius: 4px;
    font-size: 12px;
}

/* Ardışık mesaj gruplarında avatar hizasını koru */
.chat-avatar.invisible {
    visibility: hidden;
}

/* Hover aksiyonları: template'in kendi .chat-msg-more stili kullanılır
   (dashlite.css — balonun yanında, hover'da belirir). Ek stil gerekmez. */

/* Profil paneli overlay'i: geniş ekranda (panel yana yaslanınca) gereksiz */
@media (min-width: 1540px) {
    .chat-profile-overlay-auto {
        display: none;
    }
}

/* Okunmamış ayracı */
.chat-sap-unread .chat-sap-meta:before,
.chat-sap-unread .chat-sap-meta:after {
    border-color: #6576ff;
}

/* Üye listesi */
.chat-members,
.chat-shared-files {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* Sidebar ince ayarları — DashLite'ın ferah varsayılanları sıkılaştırıldı. */

/* Arama kutusu ile liste arası: dashlite 1.75rem verir, sıkılaştırıldı. */
.nk-chat-aside-search {
    margin-bottom: 0.5rem;
}

/* Sabitlenmiş (fav) avatar sırası üstten nefes alsın. */
.nk-chat-fav {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}
