﻿* {
    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 */
}

@keyframes pulse-strong {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#toast-container > .toast-error, #toast-container > .toast-success, #toast-container > .toast-warning, #toast-container > .toast-info {
    background-size: 17px;
}

#toast-container > div {
    font-size: 12px;
    padding: 10px 15px 10px 44px;
}

.animate-pulse {
    animation: pulse-strong 1.2s ease-in-out infinite;
    will-change: transform, opacity;
}

.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 */
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Logo Animasyonu */
#preloader-logo {
    width: 180px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-loader {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2.5px solid #dbe3f1;
    border-top-color: #1e293b;
    border-right-color: #38bdf8;
    animation: preloader-spin 0.9s linear infinite;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 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);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.chat-application .ChatGovde {
    height: 100dvh;
}

/*[data-layout=horizontal] .chatMessageInput {*/
/*    bottom: 80px !important;*/
/*}*/

[data-layout=horizontal] .ChatIci {
    height: calc(100dvh - 205px) !important;
}

[data-layout=horizontal] .ChatGovde {
    height: calc(100dvh - 57px) !important;
}

.chat-container {
    min-width: 0;
    max-width: 100%;
}

/*.ChatMedyaEkrani {*/
/*    height: calc(100dvh - 40px);*/
/*}*/

.ChatMesajlar {
    /*height: calc(100dvh - 304px);*/
}

.ChatResim {
    width: 120px;
}

.ChatIci {
    height: calc(100dvh - 145px);
    padding-top: 10px;
    padding-bottom: 0;
    transition: padding-bottom 180ms ease;
}

.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;
}

.comment .inMsg {
    flex-direction: row;
    gap: 11px;
    align-items: flex-start;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.comment.is-reply-target .inMsg,
.comment.is-reply-target .outMsg {
    border-color: #4a8df8;
    box-shadow: 0 0 0 2px rgba(74, 141, 248, 0.2);
}

.comment .CommentContent {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    gap: 5px;
    position: relative;
    padding-right: 16px;
}

.comment .CommentLike {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.comment .CommentLike.is-liked {
    color: #ef4444;
}

.comment .CommentLike:hover {
    color: #b91c1c;
}

.has-reply-action {
    position: relative;
}

.msg-reply-btn {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: .95;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
    z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
    .msg-reply-btn {
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .LeftMsg:hover .msg-reply-btn,
    .RightMsg:hover .msg-reply-btn,
    .msg-reply-btn:focus-visible {
        opacity: .95;
        pointer-events: auto;
    }
}

.outMsg .msg-reply-btn {
    left: -30px;
    right: auto;
}

.msg-reply-btn:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    transform: translateY(-50%) translateX(1px);
}

.outMsg .msg-reply-btn:hover {
    transform: translateY(-50%) translateX(-1px);
}

.msg-translate-btn {
    position: static;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
    opacity: .82;
    transition: all .15s ease;
    flex: 0 0 auto;
}

.msg-translate-btn:hover {
    background: #eef5ff;
    border-color: rgba(37, 99, 235, 0.45);
    opacity: 1;
}

.msg-translate-btn.is-loading {
    opacity: .6;
    pointer-events: none;
}

.MesajSaat.has-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.msg-translated-text {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(100, 116, 139, 0.35);
    font-size: 12px;
    line-height: 1.4;
    color: #334155;
    white-space: pre-wrap;
}

.comment .CommentMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.comment .CommentActions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.comment .CommentAction {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(37, 99, 235, 0.24);
    padding: 2px 8px;
    border-radius: 999px;
    background: #f8fbff;
    transition: all .15s ease;
}

.comment .CommentAction.is-active {
    background-color: #e0edff;
    border-color: #4a8df8;
    color: #1e3a8a;
}

.comment .CommentAction:hover {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.45);
    background: #eef5ff;
    text-decoration: none;
}

.comment .MesajSaat {
    align-self: flex-end;
    text-align: right;
}

.comment.RightMsg {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 49px; /* 38px avatar + 11px gap hizasi */
    position: relative;
}

.comment .outMsg {
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: linear-gradient(180deg, #eafcf2 0%, #daf6e7 100%) !important;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.11);
}

.comment .outMsg .text {
    align-self: flex-start;
    text-align: left;
}

.comment .outMsg .CommentMeta {
    width: 100%;
}

.comment .outMsg:hover {
    background: linear-gradient(180deg, #e4f9ed 0%, #d4f3e3 100%) !important;
    border-color: rgba(22, 163, 74, 0.35);
}

.comment.comment-thread-child.RightMsg {
    width: auto;
    max-width: none;
    margin-left: auto;
    padding-left: 66px;
}

.comment.comment-thread-child .outMsg {
    border: 1px solid rgba(16, 185, 129, 0.26);
    background: linear-gradient(180deg, #effdf5 0%, #e3f8ee 100%) !important;
}

.comment.comment-thread-child.RightMsg::before {
    content: "";
    position: absolute;
    left: 51px;
    top: -8px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.52));
}


.comment .inMsg:hover {
    background-color: #fbfdff;
    cursor: pointer;
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.parent-chat-box.comment #chatMedia .ChatMedyaEkrani {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.parent-chat-box.comment #chatMedia .ChatMedyaEkrani .simplebar-content-wrapper {
    overflow-y: auto !important;
}

.parent-chat-box.comment #chatMedia {
    display: flex;
    flex-direction: column;
}

.comment .CommentAvatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    flex: 0 0 auto;
}
.comment .ChatIci {
    height: calc(100dvh - 205px);
}
.comment .chatMessageInput {
    bottom: 27px;
}
.comment .CommentAvatarInitial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.postCaption {
    font-size: 12px;
    background-color: #80808033;
    padding: 6px;
    margin-top: 10px;
}


.inMsg .text {
    align-self: flex-start;
}

.inMsg .GroupSenderName {
    align-self: flex-start;
    width: 100%;
    text-align: left;
}

.inMsg .MesajSaat {
    font-size: 75%;
    opacity: 0.7;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}


.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%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}


.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;
}

.dark .ActiveChat {
    border-left-color: #22c55e;
    background: linear-gradient(180deg, #11233a 0%, #0f2238 100%);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28), 0 6px 18px rgba(2, 10, 24, 0.35);
}

.dark .ActiveChat h6 {
    color: #e2ecfb !important;
}

.dark .ActiveChat span,
.dark .ActiveChat .lastMessage,
.dark .ActiveChat .post-list-time,
.dark .ActiveChat .channelInfo {
    color: #a8bddb !important;
}

.chat-scrollable {
    height: calc(100dvh - 140px) !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 {
    flex-basis: 0 !important;
    width: 0px !important;
    max-width: 0 !important;
    overflow: hidden;
}

.msg-image {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.chat-meta-card {
    background: #f5f7fb;
    border: 1px solid #e5e7eb;
    padding: 12px;
    margin-bottom: 20px;
}

.chat-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
}

.chat-meta-label {
    color: #6b7280;
    font-weight: 500;
}

.chat-meta-value {
    color: #111827;
    font-weight: 600;
}

.chatting-box {
    min-width: 0;
}

.app-chat-offcanvas {
    flex: 0 0 300px;
    width: 300px;
    max-width: 35vw;
}

.comment .app-chat-offcanvas {
    flex: 0 0 240px;
    width: 240px;
    max-width: 35vw;
}

.parent-chat-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Mobilde offcanvas flex-basis kaynaklÄ± boÅŸluk oluÅŸmasÄ±nÄ± engelle */
@media screen and (max-width: 991px) {
    .parent-chat-box .app-chat-offcanvas {
        flex-basis: 0 !important;
        max-width: 0 !important;
    }

    .parent-chat-box.app-chat-right .app-chat-offcanvas {
        flex-basis: 300px !important;
        max-width: 300px !important;
    }
}

@media screen and (max-width: 576px) {
    .parent-chat-box.app-chat-right .app-chat-offcanvas {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

.chat-box-inner-part {
    height: 100%;
    min-width: 0;
}

.chat-box {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
}

.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);
}

@keyframes note-dot-ping {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.9);
        opacity: 0;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.chat-note-dot-ping {
    animation: note-dot-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media screen and (max-width: 991px) {
    .pc-note-badge {
        display: none !important;
    }
}

.download-btn-doc {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f2937 0%, #334155 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    transition: all .2s ease;
}

.download-btn-doc:hover {
    background: linear-gradient(135deg, #374151 0%, #475569 100%);
    transform: translateY(-1px);
}

.download-btn-doc .doc-download-icon {
    font-size: 13px;
}

.download-btn-doc.is-loading {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    cursor: wait;
}

.download-btn-doc.is-loading .fa-circle-notch {
    font-size: 14px !important;
    opacity: .95;
}

.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-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    max-width: 98px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.preview img {
    max-width: 70px;
    max-height: 70px;
    border-radius: 8px;
    border: 1px solid #d4dbe6;
    object-fit: cover;
    background: #ffffff;
}

.preview .preview-file-icon {
    object-fit: contain;
    border: none;
    background: transparent;
}

.preview .preview-file-name {
    width: 100%;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.2;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.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: -7px;
    right: -7px;
    background: #ffffff;
    color: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 12px;
    display: none;
    place-items: center;
    color: #ef4444;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.msgInputUpload .remove-btn:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

@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;
    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;
    border: 0;
    border-top: 1px solid #8080801a;
    position: sticky;
    bottom: 0px;
    width: 100%;
    height: 44px;
    background: white;
    text-align: center;
    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);
}

/* Chart Ã¶zel alan */
.glass-chart-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
}

/* Desktop */
@media (min-width: 1024px) {
    .glass-chart-wrap {
        height: 320px;
    }
}

/* Chart iÃ§i yumuÅŸak cam parlamasÄ± */
.glass-chart-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.08),
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.04)
    );
    pointer-events: none;
}


.card,
.left-sidebar {
    border-radius:0px !important;
}

#application-sidebar-brand.left-sidebar {
    border-radius: 0 !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%;
    position: relative;
}

.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: absolute;
    left: 0;
    right: 0;
    bottom: 67px;
    z-index: 4;
    padding-left: 30px;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: translateY(8px);
    transition: transform 180ms ease, opacity 180ms ease;
    pointer-events: none;
}

.parent-chat-box.comment .ReplyBar {
    bottom: 100%;
}

.ReplyText {
    font-size: 12px;
}

.ReplyCancelBtn {
    font-size: 1.5rem;
    margin-right: 10px;
}

.ChatComposerFooter {
    background: white;
}

.comment .CommentUserName {
    font-weight: 700;
}

.ReplyMode {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ReplyBar.is-comment .ReplyMode {
    background: #dcfce7;
    color: #166534;
}

.ReplyBar.is-dm .ReplyMode {
    background: #dbeafe;
    color: #1e40af;
}

.ChatIci.reply-open {
    padding-bottom: 72px;
}

.ReplyBar.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Comment Dark Theme Fixes */
.dark .comment .inMsg {
    background-color: #0f1b2d;
    border-color: #274062;
    box-shadow: 0 2px 10px rgba(2, 10, 24, 0.35);
}

.dark .comment .inMsg:hover {
    background-color: #13243b;
    border-color: #356092;
    box-shadow: 0 4px 12px rgba(2, 10, 24, 0.45);
}

.dark .comment .CommentContent {
    color: #dbe7ff;
}

.dark .comment .MesajSaat {
    color: #95a9c8;
}

.dark .comment .CommentAction {
    color: #9dc1ff;
    border-color: rgba(120, 170, 255, 0.35);
    background: rgba(26, 45, 74, 0.9);
}

.dark .comment .CommentAction:hover {
    color: #c3dbff;
    border-color: rgba(150, 190, 255, 0.6);
    background: rgba(36, 63, 100, 0.95);
}

.dark .comment .CommentAction.is-active {
    color: #d7e8ff;
    background-color: rgba(42, 79, 128, 0.95);
    border-color: rgba(135, 180, 255, 0.7);
}

.dark .comment .CommentLike {
    color: #8ea2bf;
}

.dark .msg-translate-btn {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 0px;
    left: 6px;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
    opacity: .82;
    z-index: 2;
    transition: all .15s ease;
}

.dark .msg-translate-btn:hover {
    background: #1b3454;
    border-color: rgba(150, 190, 255, 0.55);
    color: #c3dbff;
}

.dark .msg-translated-text {
    border-top-color: rgba(148, 163, 184, 0.35);
    color: #c8d7ef;
}

.dark .comment .outMsg {
    border-color: rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, rgba(16, 68, 47, 0.95) 0%, rgba(13, 85, 54, 0.95) 100%) !important;
    box-shadow: 0 2px 10px rgba(8, 28, 17, 0.5);
}

.dark .comment .outMsg:hover {
    border-color: rgba(52, 211, 153, 0.55);
    background: linear-gradient(180deg, rgba(18, 83, 56, 0.98) 0%, rgba(12, 100, 61, 0.98) 100%) !important;
}

.dark .comment.comment-thread-child .outMsg {
    border-color: rgba(16, 185, 129, 0.48);
    background: linear-gradient(180deg, rgba(15, 78, 56, 0.96) 0%, rgba(12, 93, 66, 0.96) 100%) !important;
}

.dark .postCaption {
    background-color: #14263e;
    color: #dce8fa;
}

.dark .chat-meta-card {
    background: #102035;
    border-color: #253d5d;
}

.dark .chat-meta-label {
    color: #8ea5c6;
}

.dark .chat-meta-value {
    color: #e2ecfb;
}

.dark .chat-send-message-footer {
    background: #0f1b2d !important;
    border-color: #24364f !important;
}

.dark .ChatComposerFooter {
    background: #0f1b2d !important;
}

.dark .ReplyBar {
    background: #102035;
    box-shadow: rgba(2, 10, 24, 0.8) 0 -2px 0 0;
}

.dark .fake-input {
    background: transparent;
    color: #e2ecfb;
}

.dark .fake-input::placeholder {
    color: #93a8c7;
}

.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 - 230px) !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;
    box-sizing: border-box; /* ğŸ”¥ Ã¶nemli */
}

.fake-input:focus {
    border-color: #ccc !important;
    box-shadow: none !important;
    outline: none !important;
}

.chart-wrapper {
    padding: 15px;
    position: relative;
    height: auto; /* 280â€“360 ideal */
    max-height: 400px;
    width: 100%;
}

#gunlukChart {
    max-height: 300px;
}

#komutPopup {
    padding: 10px;
    left: 0;
    right: 0;
    max-height: 170px;
    overflow: auto;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.komut-item:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}


#detay_icerik {
    white-space: pre-line;
}

#komutListesi {
    height: 100%;
    overflow: auto;
}

.heatmap {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 4px;
    font-size: 12px;
}

.heatmap-header {
    font-weight: 600;
    text-align: center;
    opacity: 0.7;
}

.heatmap-hour {
    text-align: right;
    padding-right: 6px;
    opacity: 0.6;
}

.heatmap-cell {
    height: 22px;
    border-radius: 4px;
    text-align: center;
    align-content: center;
}

#template-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#template-actions .template-select {
    width: 100%;
}

#template-actions .template-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

#template-actions .template-buttons button {
    width: 100%;
}

@media (min-width: 768px) {
    #template-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        flex-wrap: nowrap;
    }

    #template-actions .template-select {
        width: 220px;
        flex: 0 0 auto;
    }

    #template-actions .template-buttons {
        flex-direction: row;
        width: auto;
        flex: 0 0 auto;
        gap: 10px;
    }

    #template-actions .template-buttons button {
        width: auto;
    }
}

@media screen and (max-width: 767px) {
    #chatMessageInputDevral {
        bottom: 20px;
        position: absolute;
        width: 100%;
    }

    #chatMessageInputDevral .chat-send-message-footer {
        padding: 5px;
    }

    .ChatGovde {
        height: 100dvh;
    }

    .ChatResim {
        width: 120px;
    }

    .ChatIci {
        height: calc(100dvh - 160px)

    }

    .IsleniyorToast {
        max-width: calc(100% - 10px) !important;
    }

    .KonusmaDetay {
        height: calc(100dvh - 60px);
    }

    .KonusmaDetay .simplebar-wrapper {
        height: calc(100dvh - 195px) !important
    }

    .ChatMedyaEkrani {
        width: 100%;
        height: calc(100dvh - 140px);
    }

    .Konusmalar,
    .ChatMesajlar {
        height: calc(100dvh - 190px) !important;
    }

    .chat-scrollable {
        height: calc(100dvh - 210px) !important;
    }
}

.post-card .post-list-title,
.post-card .post-list-lastmsg {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Publish Center */
.publish-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    margin-top: 0;
}

#main-wrapper:has(.publish-page),
#main-wrapper .page-wrapper:has(.publish-page) {
    overflow-x: hidden;
}

#main-wrapper:has(.publish-page) {
    padding-top: 0 !important;
}

#main-wrapper.mobile-edge-page {
    gap: 4px;
}

@media (min-width: 1300px) {
    html[data-layout=vertical] #main-wrapper.mobile-edge-page .page-wrapper {
        margin-left: 280px !important;
    }

    html[data-layout=vertical] body[data-sidebartype=mini-sidebar] #main-wrapper.mobile-edge-page .page-wrapper {
        margin-left: 79px !important;
    }
}

@media (min-width: 768px) {
    .publish-page {
        margin-top: 0;
    }
}

.publish-channel-tab[data-tab-active="1"] .publish-channel-tab-subtitle {
    color: rgba(226, 232, 240, 0.92);
}

.publish-mini-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.publish-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.45);
}

.publish-page .publish-hover-lift {
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.publish-page .publish-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.45);
}

/* Global interactive hover lift */
@media (hover: hover) and (pointer: fine) {
    a.card,
    button.card,
    .sidebar-item .sidebar-link,
    .single-link-horizontal,
    .dropdown-link-horizontal,
    .icon-hover,
    .btn,
    .publish-page .publish-hover-lift {
        transition: transform 180ms ease, box-shadow 180ms ease;
        will-change: transform;
    }

    a.card:hover,
    button.card:hover,
    .sidebar-item .sidebar-link:hover,
    .single-link-horizontal:hover,
    .dropdown-link-horizontal:hover,
    .icon-hover:hover,
    .btn:hover,
    .publish-page .publish-hover-lift:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.38);
    }
}

@media (prefers-reduced-motion: reduce) {
    a.card,
    button.card,
    .sidebar-item .sidebar-link,
    .single-link-horizontal,
    .dropdown-link-horizontal,
    .icon-hover,
    .btn,
    .publish-page .publish-hover-lift {
        transition: none !important;
    }
}

.publish-channel-tab[data-tab-active="0"] .publish-channel-tab-subtitle {
    color: #64748b;
}

.publish-channel-tab[data-tab-active="0"]:hover .publish-channel-tab-subtitle {
    color: #475569;
}

.dark .publish-channel-tab[data-tab-active="0"] .publish-channel-tab-subtitle {
    color: #94a3b8;
}

.dark .publish-channel-tab[data-tab-active="0"]:hover .publish-channel-tab-subtitle {
    color: #cbd5e1;
}

.publish-feed-scroll {
    display: inline-flex;
    flex-wrap: nowrap;
    width: auto;
    min-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.publish-feed-scroll-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.publish-feed-scroll::-webkit-scrollbar {
    display: none;
}

.publish-channel-tabs-scroller {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.publish-channel-tabs-scroller::-webkit-scrollbar {
    display: none;
}

.publish-channel-panel {
    min-width: 0;
}

.publish-feed-nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgb(226 232 240 / 1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    box-shadow: 0 8px 16px -14px rgba(15, 23, 42, 0.55);
    transition: background-color 160ms ease, border-color 160ms ease;
}

.publish-feed-nav:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.publish-feed-nav-prev {
    left: 0.25rem;
}

.publish-feed-nav-next {
    right: 0.25rem;
}

.publish-feed-card {
    flex: 0 0 236px;
    width: 236px;
    min-width: 236px;
    max-width: 236px;
}

.publish-feed-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 172px;
    max-height: 260px;
    overflow: hidden;
}

.publish-feed-media img {
    max-height: 349px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.publish-status-tab[data-status-active="1"] {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.publish-status-tab[data-status-active="0"] {
    background: #fff;
    color: #475569;
    border-color: rgb(226 232 240 / 1);
}

.publish-status-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    width: 100%;
}

.publish-status-tabs .publish-status-tab {
    width: 100%;
}

@media (min-width: 768px) {
    .publish-status-tabs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        width: auto;
    }

    .publish-status-tabs .publish-status-tab {
        width: auto;
    }
}

.publish-delete-modal-overlay {
    opacity: 0;
    transition: opacity 180ms ease;
}

.publish-delete-modal-overlay[data-modal-state="open"] {
    opacity: 1;
}

.publish-delete-modal-panel {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms ease, opacity 220ms ease;
}

.publish-delete-modal-overlay[data-modal-state="open"] .publish-delete-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Compact mode for publish center */
.publish-page > .relative {
    padding: 1rem;
}

.publish-page > .relative .space-y-6 {
    row-gap: 0.875rem;
}

.publish-page h1 {
    margin-top: 0.75rem;
    font-size: 1.9rem;
    line-height: 1.15;
}

.publish-page .publish-channel-tab {
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
}

.publish-page .publish-channel-tab img {
    width: 1.75rem;
    height: 1.75rem;
}

.publish-page .publish-status-tab {
    padding: 0.375rem 0.7rem;
    font-size: 0.82rem;
}

.publish-page .publish-channel-panel > div:first-child {
    padding: 0.8rem 1rem;
}

.publish-page .publish-channel-panel .space-y-4 {
    row-gap: 0.65rem;
}

.publish-page .publish-channel-panel .p-4 {
    padding: 0.75rem;
}

.publish-page .publish-feed-card .p-4 {
    padding: 0.625rem;
}

/* Bootstrap runtime compatibility (modal/offcanvas only) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
    transform: translateY(-20px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-open {
    overflow: hidden;
}

.modal-sm {
    max-width: 320px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    color: inherit;
    visibility: hidden;
    background-clip: padding-box;
    outline: 0;
    transition: transform 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

.offcanvas.showing,
.offcanvas.show:not(.hiding) {
    transform: none;
    visibility: visible;
}

.offcanvas.hiding {
    visibility: visible;
}

.offcanvas-start {
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    transform: translateX(100%);
}

.offcanvas-top {
    top: 0;
    right: 0;
    left: 0;
    height: 30vh;
    max-height: 100%;
    transform: translateY(-100%);
}

.offcanvas-bottom {
    right: 0;
    left: 0;
    height: 30vh;
    max-height: 100%;
    transform: translateY(100%);
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
}

.offcanvas-backdrop.fade {
    opacity: 0;
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* Force sidebar drawer to always open from left on mobile */
#application-sidebar-brand.offcanvas-start {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%) !important;
}

#application-sidebar-brand.offcanvas-start.show,
#application-sidebar-brand.offcanvas-start.showing,
#application-sidebar-brand.offcanvas-start:not(.hiding).show {
    transform: none !important;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
}

/* Global color scheme */
html {
    color-scheme: light !important;
}

html.dark {
    color-scheme: dark !important;
}

/* Layout app spacing and modal/sidebar stacking fixes */
@media (max-width: 767px) {
    #main-wrapper.mobile-edge-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main-wrapper.mobile-edge-page .page-wrapper > main > .container.full-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main-wrapper.mobile-padded-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main-wrapper.mobile-padded-page .page-wrapper > main > .container.full-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main-wrapper.mobile-padded-page .mobile-content-pad {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
}

@media (min-width: 768px) {
    .desktop-content-gap {
        padding-top: 1.25rem;
    }
}

@media (min-width: 1280px) {
    body.hs-overlay-body-open #application-sidebar-brand,
    html.hs-overlay-body-open #application-sidebar-brand,
    body.hs-overlay-body-open .with-horizontal.left-sidebar,
    html.hs-overlay-body-open .with-horizontal.left-sidebar,
    body.eic-modal-open #application-sidebar-brand,
    html.eic-modal-open #application-sidebar-brand,
    body.eic-modal-open .with-horizontal.left-sidebar,
    html.eic-modal-open .with-horizontal.left-sidebar {
        z-index: 1 !important;
        pointer-events: none !important;
    }

    body.hs-overlay-body-open #application-sidebar-brand .scroll-sidebar,
    html.hs-overlay-body-open #application-sidebar-brand .scroll-sidebar,
    body.hs-overlay-body-open .with-horizontal.left-sidebar .scroll-sidebar,
    html.hs-overlay-body-open .with-horizontal.left-sidebar .scroll-sidebar,
    body.eic-modal-open #application-sidebar-brand .scroll-sidebar,
    html.eic-modal-open #application-sidebar-brand .scroll-sidebar,
    body.eic-modal-open .with-horizontal.left-sidebar .scroll-sidebar,
    html.eic-modal-open .with-horizontal.left-sidebar .scroll-sidebar {
        pointer-events: none !important;
    }
}

/* Menu report styles */
@keyframes aktif-yesil-parla {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.25);
    }
}

.aktif-yesil-dot {
    animation: aktif-yesil-parla 1s ease-in-out infinite;
}

.report-sub-link {
    opacity: 0.72;
    color: #4b5563;
    transition: color 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.report-sub-link:hover {
    opacity: 1;
    color: #111827;
}

.report-sub-link.is-active {
    opacity: 1;
    color: #111827 !important;
    font-weight: 600;
}

.dark .report-sub-link {
    color: #d1d5db;
}

.dark .report-sub-link:hover,
.dark .report-sub-link.is-active {
    color: #ffffff !important;
    opacity: 1;
}

/* Kredi/depolama modal styles */
.kredi-log-scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.kredi-log-scrollbar-hide::-webkit-scrollbar {
    display: none;
}

#krediCenterModalLogs,
#depolamaCenterModalLogs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kredi-log-item {
    background: #f8fafc;
}

.kredi-paket-card,
.depolama-paket-card {
    background: #ffffff;
    border-color: #cbd5e1;
}

.dark .kredi-log-item {
    background: rgba(15, 23, 42, 0.45);
}

.dark .kredi-paket-card,
.dark .depolama-paket-card {
    background: #0f172a;
    border-color: #334155;
}

@media (max-width: 767px) {
    #krediCenterModalLogs,
    #depolamaCenterModalLogs {
        grid-template-columns: 1fr;
    }

    #krediCenterModalPaketler,
    #depolamaCenterModalPaketler {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #krediCenterModal .modal-dialog,
    #depolamaCenterModal .modal-dialog {
        max-height: 92vh;
        margin: 0;
        margin-top: auto;
        width: 100%;
    }
}

@media (max-width: 1279px) {
    #application-sidebar-brand {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    #application-sidebar-brand .scroll-sidebar {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto;
    }

    #application-sidebar-brand .mobile-menu-footer {
        margin-top: auto;
        position: relative;
        bottom: auto;
        flex: 0 0 auto;
        z-index: 5;
        background: inherit;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #application-sidebar-brand .menu-balance-group {
        margin-bottom: 10px;
    }
}

@media (min-width: 1280px) {
    #application-sidebar-brand.offcanvas {
        visibility: visible !important;
        transform: none !important;
        left: 0 !important;
        right: auto !important;
    }
}

/* Horizontal menu */
.horizontal-menu-row::-webkit-scrollbar {
    display: none;
}

.horizontal-menu-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-menu-row .single-link-horizontal {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.horizontal-menu-row .single-link-horizontal iconify-icon {
    padding: 0.2rem !important;
}

/* New group + group settings */
#ChatNewGroupModal .chat-new-group-person[data-selected="1"],
#ChatGroupSettingsModal .chat-group-settings-person[data-selected="1"] {
    border-color: #7dd3fc;
    background: #eff8ff;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08);
}

#ChatNewGroupModal .chat-new-group-person[data-selected="1"] .chat-new-group-check,
#ChatGroupSettingsModal .chat-group-settings-person[data-selected="1"] .chat-group-settings-check {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: #ffffff;
}

#ChatGroupSettingsModal .chat-group-settings-members-list {
    overflow-anchor: none;
}

/* Mini sidebar lock hover */
html[data-layout="vertical"].mini-sidebar-lock body[data-sidebartype="mini-sidebar"] .left-sidebar:hover {
    width: 65px !important;
    box-shadow: none !important;
    z-index: 2 !important;
}

html[data-layout="vertical"].mini-sidebar-lock body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .brand-logo {
    width: 40px !important;
    overflow: hidden;
}

html[data-layout="vertical"].mini-sidebar-lock body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .hide-menu,
html[data-layout="vertical"].mini-sidebar-lock body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .hide-menu-flex,
html[data-layout="vertical"].mini-sidebar-lock body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .sidebar-ad {
    display: none !important;
}

html[data-layout="vertical"].mini-sidebar-lock body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .nav-small-cap-icon {
    display: block !important;
}

/* Login page */
.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(11, 18, 70, 0.12), transparent 30%),
        linear-gradient(180deg, #f3f6fb 0%, #eef2f7 100%);
}

.auth-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.auth-stat-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.auth-input {
    min-height: 54px;
    border: 1px solid #d7dfeb;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input:focus {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.auth-submit {
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b1246 0%, #0f766e 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 20px 32px rgba(11, 18, 70, 0.2);
}

.auth-submit:hover {
    filter: brightness(1.03);
}

.auth-link {
    color: #0f766e;
    font-weight: 700;
}

.auth-link:hover {
    color: #0b1246;
}

.auth-forgot-modal {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

/* Business select page */
.business-select-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(11, 18, 70, 0.14), transparent 30%),
        linear-gradient(180deg, #f3f6fb 0%, #eef2f7 100%);
}

.business-select-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.business-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.business-card:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.business-card input:checked + label {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* Site widget form page */
.site-widget-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .site-widget-split {
        grid-template-columns: minmax(0, 1fr) 430px;
        align-items: start;
    }

    .site-widget-preview-sticky {
        position: sticky;
        top: 6rem;
    }
}

/* Publish center skeleton */
.publish-feed-media {
    position: relative;
    overflow: hidden;
}

.publish-feed-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.08) 8%, rgba(255, 255, 255, 0.22) 18%, rgba(255, 255, 255, 0.08) 33%);
    transform: translateX(-100%);
    animation: publish-media-skeleton 1.35s ease-in-out infinite;
    pointer-events: none;
}

.publish-feed-media[data-loaded="1"]::before {
    display: none;
}

.publish-lazy-media[data-loaded="1"] {
    opacity: 1;
}

@keyframes publish-media-skeleton {
    100% {
        transform: translateX(100%);
    }
}
