* {
    user-select: none;
    -webkit-user-select: none; /* iOS/Safari */
    -ms-user-select: none; /* Eski Edge */
    -moz-user-select: none; /* Firefox */
    -webkit-touch-callout: none; /* iPhone'da basılı tutunca çıkan menüyü engeller */
    -webkit-user-drag: none; /* Sürüklemeyi kapatır */
}

.inMsg .text,
.outMsg .text {
    user-select: text !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1; /* Başlangıç opaklığı */
    transition: opacity 1s ease; /* 1 saniyelik fade-out geçişi */
}

/* Logo Animasyonu */
#preloader-logo {
    width: 180px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Logo Solma Animasyonu */
@keyframes fadeOutLogo {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}


#preloader.hidden {
    opacity: 0; /* Opaklık sıfıra düşer */
    pointer-events: none; /* Tıklanabilirliği engeller */
}

.ChatGovde {
    height: calc(100dvh - 40px);
}

.ChatMedyaEkrani {
    height: calc(100dvh - 40px);
}

.ChatMesajlar {
    /*height: calc(100dvh - 304px);*/
}

.ChatResim {
    width: 120px;
}

.ChatIci {
    height: calc(100dvh - 195px);
    padding-top: 10px;
}

.simplebar-content::-webkit-scrollbar {
    width: 10px; /* Scroll bar genişliği */
    height: 10px; /* Scroll bar yüksekliği */
}

.simplebar-content::-webkit-scrollbar-thumb {
    background: #888; /* Scroll barın rengi */
    border-radius: 5px; /* Köşeleri yuvarlat */
}

.simplebar-content::-webkit-scrollbar-thumb:hover {
    background: #555; /* Hover üzerindeyken scroll bar rengi */
}

.simplebar-content::-webkit-scrollbar-track {
    background: #f1f1f1; /* Scroll bar arka plan rengi */
}

.inMsg {
    display: flex;
    flex-direction: column; /* ✅ Satır yerine sütun hizası */
    align-items: flex-end; /* Saat sağda */
    background-color: #bff3ff8c;
    border-radius: 5px;
    padding: 5px;
    max-width: inherit;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.inMsg .text {
    align-self: flex-start;
}

.inMsg .MesajSaat {
    font-size: 75%;
    opacity: 0.7;
}


.outMsg {
    display: flex;
    flex-direction: column;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    margin-bottom: 1px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    align-items: flex-end;
    background-color: #6effa859 !important;
}

.outMsg .text {
    align-self: flex-end;
}

/*.outMsg {*/
/*    padding: 5px;*/
/*    border-radius: 5px;*/
/*    margin-bottom: 1px;*/
/*    word-wrap: break-word;*/
/*    max-width: inherit;*/
/*    display: flex;*/
/*    flex-direction: row-reverse;*/
/*    justify-content: space-between;*/

/*}*/

.outMsg .MesajSaat {
    /*margin-right: 17px;*/
    font-size: 75%;
}

.inMsg:hover {
    background-color: rgb(191, 243, 255);
    cursor: pointer;
}

.outMsg:hover {
    background-color: rgba(110, 255, 168, 0.72) !important;
    cursor: pointer;
}

.RightMsg {
    gap: 2px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.SystemMessage {
    background-color: rgba(217, 217, 129, 0.42);
    font-size: 11px;
    margin-bottom: 10px;
}

.SystemMessage:hover {
    background-color: rgba(217, 217, 129, 0.48);
    cursor: pointer;
}

/*.RightMsg:hover .MesajSaat {*/
/*    display: block !important;*/
/*}*/

.LeftMsg {
    gap: 2px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}


.TabButton {
    padding: 5px 0px 5px 0px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.MesajTarih {
    background-color: #ececec;
    border-radius: 5px;
    padding: 3px 12px;
}

.MesajTarih:hover {
    background-color: #CDCDCD;
}

.Konusmalar {
    /*height: calc(100dvh - 280px) !important;*/
}

.ActiveChat {
    border-left: 5px solid #3dbb3d;
    background-color: var(--color-lightgray);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.chat-scrollable {
    height: calc(100dvh - 182px) !important; /* Görünür alan yüksekliği */
    overflow: auto; /* Scroll yapılabilir */
    position: relative;
}

.chat-scrollable::-webkit-scrollbar {
    width: 4px;
}

.chat-scrollable::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
}

#ChatScreen::-webkit-scrollbar {
    width: 4px;
}

#ChatScreen::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
}

.Spacer {
    position: absolute;
    top: 0;
    width: 100%;
    height: 0; /* Dinamik olarak güncellenecek */
}

.chat-users {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.msgCount {
    font-size: 10px;
}

.chatMediaGizli {
    width: 0px !important;
}

.msg-image {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.msg-image .MesajSaat {
    text-align: end;
}

.download-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Butonu tam ortaya alır */
    background-color: rgb(0 0 0 / 28%); /* Hafif şeffaf siyah arka plan */
    color: white;
    border: none;
    border-radius: 50%; /* Yuvarlak buton */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fa-circle-notch {
    font-size: 24px;
}

.bosChat {
    pointer-events: none;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
}

.msgInputUpload {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
}

.preview {
    position: relative;
    display: inline-block;
}

.preview img {
    max-width: 70px;
    max-height: 70px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.msgInputUpload .loading {
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.msgInputUpload .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    display: none;
}

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

.ChatScreenMin {
    max-height: calc(100dvh - 425px);
}

.d-none {
    display: none;
}

.ChatScreenHome .brand-logo {
    width: auto !important;
}

.msgCheckIcon {
    letter-spacing: -3px;
    margin-right: 3px;
    margin-left: 4px;
}

.resizer {
    width: 4px;
    height: 100%;
    background: #80808038;
    cursor: ew-resize;
    display: block;
    min-width: 4px;
}

.border-1px-solid {
    border: 1px solid;
}

.KonusmaMenusu {
    border-radius: 10px;
    z-index: 99999;
    display: none;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* Açılma durumunda kullanılacak sınıf */
.KonusmaMenusu.show {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.KonusmaMenusu button {
    font-size: 13px;
}

.KonusmaMenusu svg {
    height: 20px;
    width: 20px;
}

.onYazi {
    /*font-size: 13px;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Kanallar .active {
    border-bottom-color: var(--color-primary);
    background-color: rgba(128, 128, 128, 0.11);
}

.Gruplar .active {
    border-bottom-color: var(--color-primary);
}

.ArchiveGruplar .active {
    border-bottom-color: var(--color-primary);
}

.chat-user .inline-block {
    width: calc(100% - 170px);
}

.chat-user .endTime {
    width: 70px;
    text-align: end;
}

.ChatIci .emoji {
    float: right;
    margin-top: -10px;
    margin-right: 10px;
    background: white;
    border-radius: 15px;
}

.DahaFazlaYukle {
    padding: 10px;
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: white;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 0px 0px 0px 6px;
}

.DahaFazlaYukle span {
    top: 7px;
    position: relative;
    display: none;
}

/* === Liquid Glass Theme === */
.liquid-bg {
    background: radial-gradient(circle at 20% 20%, rgba(0, 153, 255, 0.3), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 100, 150, 0.2), transparent 70%),
    linear-gradient(135deg, #0e141b, #1e293b);
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(8px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: #fff;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: background 0.3s ease, border 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 153, 255, 0.7);
    outline: none;
}

.glass-button {
    background: rgba(0, 153, 255, 0.8);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(0, 153, 255, 1);
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
}

.card,
.left-sidebar {
    border-radius: 5px !important;
}

.card .shape-behind {
    position: absolute;
    z-index: -5 !important;
    filter: blur(1px);
    opacity: 0.9;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.bg-hover {
    border-bottom: 1px solid #dfdfdf;
}

.emojiReact {
    cursor: pointer;
    text-shadow: rgb(0 0 0 / 34%) 0px 1px 4px;
}

.emojiReact:hover {
    text-shadow: rgba(0, 0, 0, 1) 0px 1px 6px;
}


.chatMessageInput {
    bottom: 20px;
    position: absolute;
    width: 100%;
}

.kanal-btn {
    border: 1px solid transparent;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
    gap: 6px;
    width: 100%;
    min-width: 150px;
}

/* ACTIVE OLAN */
.TabButton.active,
.hs-tab-active\:border-b-primary.hs-tab-active\:text-gray-900.active {
    border: 1px solid #4a8df8 !important;
}

.ReplyBar {
    position: relative;
    bottom: 50px;
    padding-left: 30px;
    border-radius: 20px 20px 0px 0px;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 0px 0px;
}

.ReplyBox {
    background: #80808045;
    padding: 5px;
    width: 100%;
    border-left: 4px solid green;
    color: black;
    border-radius: 4px;
    font-size: 10px;
}

.sabitIcon {
    position: absolute;
    left: 10px;
}

#emojiPicker {
    z-index: 999999;
    width: 300px;
    height: 300px;
    bottom: 70px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background: white;
}

#emojiPicker .emojiListEmoji {
    z-index: 999999;
    width: 30px;
    height: 30px;
    margin: 1px;
    cursor: pointer;
    background-image: url("https://cdn.jsdelivr.net/npm/emoji-datasource-apple@15.0.1/img/apple/sheets-256/64.png");
    background-repeat: no-repeat;
}

#emojiPicker .emojiListEmoji:hover {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.left-sidebar .scroll-sidebar {
    height: calc(100vh - 180px) !important;
}

#LinkPopup .bg-white {
    backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.7);
    max-width: inherit;
}

.dark #LinkPopup .bg-dark {
    backdrop-filter: blur(30px);
    background: rgba(20, 20, 20, 0.7);
}

.safeLink {
    color: rgba(0, 0, 255, 0.53);
    cursor: pointer;
    text-decoration: underline;
}

.channelInfo {
    opacity: 0.7;
    background: #8080802e;
    border-radius: 4px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.fake-input {
    width: 100%;
    min-height: 42px;
    max-height: 200px;
    padding: 10px 14px;
    resize: none;
    overflow-y: auto;
    font-size: 14px;
    line-height: 20px;
    background: #fff;
    outline: none;
    display: block;
    white-space: pre-wrap;
    border: 0!important;
}
.fake-input:focus {
    border-color: #ccc !important;
    box-shadow: none !important;
    outline: none !important;
}

@media screen and (max-width: 767px) {
    #chatMessageInputDevral {
        bottom: 20px;
        position: absolute;
        width: 100%;
    }

    #chatMessageInputDevral .chat-send-message-footer {
        padding: 5px;
    }

    .ChatGovde {
        height: calc(100dvh - 200px);
    }

    .ChatResim {
        width: 120px;
    }

    .ChatIci {
        height: calc(100dvh - 148px)

    }

    .IsleniyorToast {
        max-width: calc(100% - 10px) !important;
    }

    .KonusmaDetay {
        height: calc(100dvh - 60px);
    }

    .KonusmaDetay .simplebar-wrapper {
        height: calc(100dvh - 195px) !important
    }

    .ChatMedyaEkrani {
        width: calc(100dvh - 140px);
    }

    .Konusmalar,
    .ChatMesajlar {
        height: calc(100dvh - 190px) !important;
    }

    .chat-scrollable {
        height: calc(100dvh - 230px) !important;
    }
}

