

.position-lg-sticky {
    position: -webkit-sticky;
    position: sticky;
}

@media (min-width: 992px) {
    .position-lg-sticky {
        top: 100px !important;
    }
}


#kt_cropper_modal {
    z-index: 1060 !important;
}



.modal-backdrop.show {
    z-index: 1050 !important;
}

#kt_cropper_modal .modal-content {
    z-index: 1065 !important;
    position: relative;
}

.badge {
    --bs-badge-padding-x: 0.35rem;
    --bs-badge-padding-y: 0.275rem;
}


.popover-wide {
    max-width: 500px;
}

/* Facebook */
.badge-light-facebook {
    color: #6284b0;
    background-color: rgba(24, 119, 242, 0.1);
}

.badge-facebook {
    color: #ffffff;
    background-color: #1877f2;
}

/* Twitter/X */
.badge-light-twitter {
    color: #909090;
    background-color: rgba(66, 66, 66, 0.1);
}

.badge-twitter {
    color: #ffffff;
    background-color: #000000;
}

/* Yeni Twitter/X (2023+) */
.badge-light-x {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
}

.badge-x {
    color: #ffffff;
    background-color: #000000;
}

/* WhatsApp */
.badge-light-whatsapp {
    color: #56926c;
    background-color: rgba(37, 211, 102, 0.1);
}

.badge-whatsapp {
    color: #ffffff;
    background-color: #25d366;
}

/* NSosyal */
.badge-light-nsosyal {
    color: #6c757d;
    background-color: rgba(62, 207, 207, 0.12);
}

/* Instagram */
.badge-light-instagram {
    color: #e4405f;
    background-color: rgba(228, 64, 95, 0.1);
}

.badge-instagram {
    color: #ffffff;
    background-color: #e4405f;
}

/* LinkedIn */
.badge-light-linkedin {
    color: #0a66c2;
    background-color: rgba(10, 102, 194, 0.1);
}

.badge-linkedin {
    color: #ffffff;
    background-color: #0a66c2;
}

/* YouTube */
.badge-light-youtube {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

.badge-youtube {
    color: #ffffff;
    background-color: #ff0000;
}

/* TikTok */
.badge-light-tiktok {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
}

.badge-tiktok {
    color: #ffffff;
    background-color: #000000;
}

/* Telegram */
.badge-light-telegram {
    color: #0088cc;
    background-color: rgba(0, 136, 204, 0.1);
}

.badge-telegram {
    color: #ffffff;
    background-color: #0088cc;
}

.badge-manset {
    color: #252f4a;
    background-color: #f8f9fa;
    transition: background-color 0.25s ease;
}

.badge-light-manset {
    color: #0d864b;
    background-color: #cff1dd;
    transition: background-color 0.25s ease;
}

.page-item .page-link {
    height: 2rem;

    font-size: 1rem;
}


.pagination {
/* 
  --bs-pagination-active-bg:  #4a4a4a;; */
}



    /* YouTube Arama Kartları */
    .youtube-video-card {
        transition: transform 0.2s, box-shadow 0.2s;
        cursor: pointer;
    }

    .youtube-video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .youtube-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .youtube-video-card:hover .youtube-video-overlay {
        opacity: 1;
    }

    /* Sekme içeriği yüksekliği */
    #youtube_ara_tab {
        min-height: 500px;
    }

    #youtubeSearchPagination {
        margin-top: 2rem;
    }

    #youtubePageInfo {
        min-width: 80px;
        text-align: center;
        font-weight: 600;
    }

    /* Anket Sortable Stilleri */
    /* Anket Sortable Stilleri */
    .anket-sortable-ghost {
        opacity: 0;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .anket-sortable-chosen {
        opacity: 0.5;
    }

    .anket-sortable-drag {
        opacity: 1;
        background: white;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    }

    /* Anket Resim Hover Grubu */
    .anket-resim-hover-group {
        width: 40px;
        flex-shrink: 0;
        overflow: visible;
    }

    .anket-resim-hover-inner {
        width: max-content;
        position: relative;
    }

    .anket-resim-sil-btn {
        opacity: 0;
        transition: opacity 0.3s ease;
        position: absolute;
        right: 38px;
        /* Resmin solunda */
    }

    /* ✅ Sadece resim hover'ında çıksın */
    .anket-resim-hover-group:hover .anket-resim-sil-btn {
        opacity: 1 !important;
    }

    .anket-resim-img {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }

    /* Galeri Quill Editör - Resize özelliği */
    .galeri-quill-editor {
        background: white;
        height: 80px !important;
        overflow: auto;
        /* ✅ Scroll ekle */
        min-height: 80px;
        /* Minimum yükseklik */
        max-height: 500px;
        /* Maximum yükseklik */
        border: 1px solid #e4e6ef !important;
        border-radius: 0.475rem;
    }

    .galeri-quill-editor .ql-toolbar {
        padding: 4px !important;
        min-height: auto !important;
        border: none !important;
        border-bottom: 1px solid #e4e6ef !important;
        margin: 0 !important;
    }

    .galeri-quill-editor .ql-container {
        font-size: 0.875rem;
        height: calc(100% - 42px) !important;
        border: none !important;
        margin: 0 !important;
    }

    .galeri-quill-editor .ql-editor {
        min-height: 40px !important;
        padding: 8px !important;
        margin: 0 !important;
    }

    .galeri-item {
        transition: none !important;
    }

    .galeri-card {
        transition: transform 0.2s ease;
    }

    .galeri-overlay {
        background: transparent;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .draggable-handle {
        cursor: grab;
    }

    .draggable-handle:active {
        cursor: grabbing !important;
    }

    /* Sortable sürükleme durumları */
    .sortable-chosen {
        opacity: 0.5;
    }

    .sortable-drag {
        opacity: 0.8;
        transform: none !important;
    }

    .sortable-ghost {
        opacity: 0.3;
        background: #f5f5f5;
        border: 2px dashed #ccc;
    }

    /* ========== DİKEY DÜZEN (YAN YANA) ========== */
    #galeri-preview.layout-vertical {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #galeri-preview.layout-vertical .draggable {
        width: calc(20% - 9.6px) !important;
        min-width: 180px !important;
    }

    #galeri-preview.layout-vertical .galeri-content-wrapper {
        display: none !important;
    }

    #galeri-preview.layout-vertical .galeri-image-wrapper {
        position: relative;
    }

    #galeri-preview.layout-vertical .galeri-image-wrapper>div {
        padding-bottom: 56.25% !important;
        position: relative !important;
        overflow: hidden;
        border-radius: 0.475rem;
    }

    #galeri-preview.layout-vertical .galeri-image-wrapper img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Dikey düzen - Overlay kontrolü */
    #galeri-preview.layout-vertical .galeri-overlay {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    #galeri-preview.layout-vertical .galeri-image-wrapper:hover .galeri-overlay {
        opacity: 1;
    }

    /* ========== YATAY DÜZEN (ALTLI ÜSTLÜ LİSTE) ========== */
    #galeri-preview.layout-horizontal {
        flex-direction: column;
    }

    #galeri-preview.layout-horizontal .draggable {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    #galeri-preview.layout-horizontal .galeri-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 150px;
    }

    #galeri-preview.layout-horizontal .card-body {
        display: flex;
        flex-direction: row;
        padding: 0 !important;
        width: 100%;
    }

    /* SOL: Resim Alanı */
    #galeri-preview.layout-horizontal .galeri-image-wrapper {
        flex: 0 0 250px;
        max-width: 250px;
        min-width: 250px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
    }

    #galeri-preview.layout-horizontal .galeri-image-wrapper>div {
        width: 100%;
        padding-bottom: 56.25% !important;
        position: relative;
        overflow: hidden;
        border-radius: 0.475rem;
    }

    #galeri-preview.layout-horizontal .galeri-image-wrapper img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Overlay - Varsayılan gizli */
    #galeri-preview.layout-horizontal .galeri-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Resme hover yapınca göster */
    #galeri-preview.layout-horizontal .galeri-image-wrapper:hover .galeri-overlay {
        opacity: 1;
    }

    /* SAĞ: Başlık ve Açıklama */
    #galeri-preview.layout-horizontal .galeri-content-wrapper {
        flex: 1;
        display: flex !important;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        min-width: 0;
    }

    #galeri-preview.layout-horizontal .galeri-content-wrapper .p-3 {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 0.5rem !important;
        width: 100%;
    }

    #galeri-preview.layout-horizontal .galeri-baslik-input {
        width: 100%;
    }

    #galeri-preview.layout-horizontal .galeri-quill-editor {
        width: 100%;
        height: 80px !important;
    }

    .hover-border-primary:hover {
        border-color: #009ef7 !important;
        background-color: #f1faff;
        transition: all 0.2s ease;
    }

    .platform-item {
        transition: all 0.2s ease;
    }

    .akis-item {
        transition: none !important;
    }

    .akis-card {
        transition: transform 0.2s ease;
    }

    .akis-overlay {
        background: transparent;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 0.475rem;
    }

    .akis-card:hover .akis-overlay {
        opacity: 1;
    }

    .akis-draggable-handle {
        cursor: grab;
    }

    .akis-draggable-handle:active {
        cursor: grabbing !important;
    }

    .akis-sortable-chosen {
        opacity: 0.5;
    }

    .akis-sortable-drag {
        opacity: 0.8;
        transform: none !important;
    }

    .akis-sortable-ghost {
        opacity: 0.3;
        background: #f5f5f5;
        border: 2px dashed #ccc;
    }

    /* Üst üste binen görseller - 16:9 oran */
    .akis-stacked-images {
        position: relative;
        width: 160px;
        height: 90px;
    }

    .akis-stacked-images img {
        position: absolute;
        width: 160px;
        height: 90px;
        object-fit: cover;
        border: 2px solid #fff;
        border-radius: 0.475rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .akis-stacked-images img:nth-child(1) {
        z-index: 3;
        top: 0;
        left: 0;
    }

    .akis-stacked-images img:nth-child(2) {
        z-index: 2;
        top: 5px;
        left: 5px;
    }

    .akis-count-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
    }

    /* Akış timestamp */
    .akis-timestamp {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
        z-index: 5;
    }

    /* Quill editör için stil */
    #akisIcerik {
        background: white;
    }

    .akis-icerik-preview {
        max-height: 100px !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        line-clamp: unset !important;
        /* ✅ Standart özellik eklendi */
    }

    /* Alt kısma gradient ekle */
    .akis-icerik-preview::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        /* Gradient yüksekliği */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
    }

    /* Eğer içerik kısaysa gradient gizle */
    .akis-icerik-preview[data-short="true"]::after {
        display: none;
    }

    .akis-icerik-preview p {
        margin: 0;
        padding: 0;
    }

    .akis-icerik-preview ul,
    .akis-icerik-preview ol {
        margin: 5px 0;
        padding-left: 20px;
    }

    /* Akış içerik preview - Fade out efekti */
    .akis-icerik-preview {
        max-height: 100px !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
    }

    /* Alt kısma gradient ekle */
    .akis-icerik-preview::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
    }

    /* Eğer içerik kısaysa gradient gizle */
    .akis-icerik-preview[data-short="true"]::after {
        display: none;
    }

    /* Akış Modal Editörü - Resize özelliği */
    #akisIcerik {
        height: 200px !important;
        resize: vertical;
        /* ✅ Dikey resize ekle */
        overflow: auto;
        min-height: 150px;
        max-height: 600px;
        border: 1px solid #e4e6ef !important;
        border-radius: 0.475rem;
    }

    #akisIcerik .ql-container {
        height: calc(100% - 42px) !important;
    }

    #akisIcerik .ql-toolbar {
        border: none !important;
        border-bottom: 1px solid #e4e6ef !important;
    }

    /* Kayıt göstergesi - başlangıçta kırmızı */
    .recording-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ffffff;
        margin-right: 8px;
        transition: all 0.2s ease;
    }

    /* Kayıt sırasında yeşil yanıp sönen animasyon */
    .recording-indicator.active {
        background-color: #28a745;
        animation: pulse 0.8s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.4;
            transform: scale(1.2);
        }
    }

    .sesli-yaz-text {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    #sesliYazButton:hover .sesli-yaz-text {
        opacity: 1;
    }

    #aiLoadingOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .ai-wave-container {
        text-align: center;
    }

    .ai-logo-wave {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .wave {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 1px solid;
        border-color: rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.4) transparent;
        animation: waveAnimation 2s linear infinite;
    }

    .wave:nth-child(2) {
        animation-delay: -0.7s;
        border-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) transparent;
    }

    .wave:nth-child(3) {
        animation-delay: -1.4s;
        border-color: rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.2) transparent;
    }

    @keyframes waveAnimation {
        0% {
            transform: rotate(0deg) scale(0.5);
            opacity: 1;
        }

        100% {
            transform: rotate(360deg) scale(1.5);
            opacity: 0;
        }
    }

    .ai-text-center {
        position: relative;
        z-index: 10;
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
        animation: iconPulse 2s ease-in-out infinite;
    }

    .ai-text-center i {
        display: block;
        font-size: 26px !important;
        line-height: 1;
    }

    @keyframes iconPulse {

        0%,
        100% {
            transform: scale(1);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.6);
        }

        50% {
            transform: scale(1.1);
            text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.6);
        }
    }

    .ai-loading-text {
        font-size: 14px;
        color: #ffffff;
        font-weight: 600;
        animation: textPulse 1.5s ease-in-out infinite;
        min-height: 20px;
        transition: opacity 0.3s ease;
    }

    @keyframes textPulse {

        0%,
        100% {
            opacity: 0.6;
        }

        50% {
            opacity: 1;
        }
    }

    .ai-text-fade {
        animation: textFadeInOut 0.5s ease;
    }

    @keyframes textFadeInOut {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .image-upload-area {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border-radius: 12px;
        border: 2px dashed #ccc;
        position: relative;
        background-color: #f3f3f3;
    }

    .image-upload-area i {
        font-size: 1.2rem;
        color: #fff;
        transition: transform 0.3s ease;
    }

    .image-upload-area:hover i {
        transform: scale(1.2);
    }

    .image-upload-area.has-image {
        aspect-ratio: 16 / 9;
    }

    .image-upload-area .d-flex {
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .preview-area {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .preview-area img {
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
        border-radius: 12px;
    }

    .preview-controls {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
        padding: 5px;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    .preview-controls button {
        background: rgba(0, 0, 0, 0.85);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.5rem;
        padding: 8px;
        transition: background 0.1s ease, transform 0.3s ease;
        pointer-events: auto;
    }

    .preview-controls button:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
    }

    .collapsible-section {
        display: none;
        transition: all 0.3s ease-in-out;
        overflow: hidden;
        max-height: 0;
    }

    .collapsible-section.open {
        display: block;
        max-height: 1000px;
    }

    /* .select-text hiçbir yerde gerçek metinle doldurulmuyor (JS sadece
       d-none/display togglıyor) — boşken görünmesi resim alanının üstünde
       anlamsız boş bir kutu olarak kalıyordu. İçerik varsa (ileride bir yerde
       gerçekten metin basılırsa) yine görünür, boşken hiç yer kaplamaz. */
    .select-text:empty {
        display: none !important;
    }


