:root {
    --main-color: #154c5b;
}

body {
  font-family: "Urbanist", sans-serif;
  line-height: 22px;
}

textarea,
input[type=text],
input[type=password],
input[type=datetime],
input[type=datetime-local],
input[type=date],
input[type=month],
input[type=time],
input[type=week],
input[type=number],
input[type=email],
input[type=url],
input[type=search],
input[type=tel],
input[type=color],
select, 
.swal2-popup {
    font-family: "Urbanist", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Urbanist", sans-serif;
  text-rendering: optimizeLegibility;
}

.main-color{color: var(--main-color);}
.main-color-hover:hover{color: var(--main-color) !important;}
.main-color-bg{background-color: var(--main-color) !important;}
.main-color-bg-hover:hover{background-color: var(--main-color) !important;}
.main-color-border{border-color: var(--main-color);}
.main-color-border-hover:hover{border-color: var(--main-color) !important;}

.office701-logo {width: 100px;}
.has-error {
    border-color: #b94a48 !important;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
}
.has-success {
    border-color: #50cd89 !important;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
}

.cookiealert.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
    transition-delay: 1000ms;
}
.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    border-radius: 0;
    transform: translateY(100%);
    transition: all 500ms ease-out;
    color: #555555;
    background: rgba(255, 255, 255, 0.9);
}
.closecookies {
    z-index: 2;
    position: absolute !important;
    right: 0 !important;
    border: none;
    background: transparent;
    font-size: 17px;
    padding: 0px;
}
.closeBtn {
    font-weight: bold;
    color: black;
}
.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0.9;
    border-style: none;
    visibility: hidden;
    border-radius: 0;
    transform: translateY(100%);
    transition: all 500ms ease-out;
    color: #555;
    background: #fff;
    box-shadow: 0 0 10 0 rgb(0 0 0 / 24%);
    padding: 15px 10px 15px 5px;
}
.cookiealert.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
    transition-delay: 1000ms;
}
.cookiealert a {
    text-decoration: underline;
}
.cookiealert a:hover {
    color: var(--theme-color2);
}
.cookiealert .cookiealert-text {
    z-index: 1;
    padding: 15px 0px 0px 10px;
    margin: 0;
    width: 100%;
    font-size: 12px;
}

.cookiealert .cookiealert-text p {
    font-size: 13px;
    line-height: 1.5;
}
.cookiealert .full-width {
    width: 100%;
}
.cookiealert .pull-rightleft {
    text-align: center;
}
@media screen and (min-width: 991px) {
    .cookiealert {
        bottom: 10px;
        left: 18px;
        width: 400px;
        border-radius: 10px;
    }

    .cookiealert .cookiealert-text {
        width: 414px;
        line-height: 2;
        margin-bottom: 15px;
    }
}
@media (max-width: 768px) {
    .cookiealert .pull-rightleft {
        float: none;
        text-align: center;
    }
}

.tf-counter .icon img{
    width: 85px;
    height: 85px;
}

.status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status.upcoming {
    background-color: #fff3cd;
    color: #856404;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modern Dropzone Tasarımı */
.dropzone {
    border: 3px dashed rgba(0, 135, 247, 0.3);
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-y: auto;
    max-height: 600px;
    min-height: 320px;
    display: block;
}

.dropzone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 135, 247, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dropzone:hover {
    border-color: #0087F7;
    background: linear-gradient(135deg, #e8f4ff 0%, #f8f9ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 135, 247, 0.15);
}

.dropzone:hover::before {
    opacity: 1;
}

.dropzone.dz-drag-hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, #d4ebff 0%, #e8f4ff 100%);
    transform: scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 135, 247, 0.25);
}

/* Dropzone Scrollbar Styling */
.dropzone::-webkit-scrollbar {
    width: 8px;
}

.dropzone::-webkit-scrollbar-track {
    background: rgba(0, 135, 247, 0.05);
    border-radius: 10px;
}

.dropzone::-webkit-scrollbar-thumb {
    background: rgba(0, 135, 247, 0.3);
    border-radius: 10px;
}

.dropzone::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 135, 247, 0.5);
}

/* Dropzone Preview Container */
.dropzone .dz-preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.dropzone .dz-message {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-weight: 500;
    z-index: 1;
    display: block;
}

.dropzone .dz-message .upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0087F7 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 135, 247, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.dropzone .dz-message .upload-icon i {
    font-size: 36px;
    color: white;
}

.dropzone .dz-message h5 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 15px 0 10px;
}

.dropzone .dz-message p {
    font-size: 14px;
    color: #6c757d;
    margin: 5px 0 0;
}

.dropzone .dz-message .supported-formats {
    display: inline-flex;
    gap: 8px;
    margin-top: 15px;
}

.dropzone .dz-message .format-badge {
    background: rgba(0, 135, 247, 0.1);
    color: #0087F7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.dropzone .dz-preview {
    margin: 15px;
    min-height: 120px;
    display: inline-block;
    vertical-align: top;
}

.dropzone .dz-preview .dz-image {
    border-radius: 12px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone .dz-preview .dz-details {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 10px;
}

.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark {
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.dropzone .dz-preview .dz-progress {
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: linear-gradient(90deg, #0087F7 0%, #00c6ff 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.dropzone .dz-preview .dz-remove {
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dropzone .dz-preview .dz-remove:hover {
    color: #a71d2a;
    transform: scale(1.1);
}

/* Gallery Grid (Dropzone sayfaları için - .gallery-grid parent gerekli) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-grid .gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-grid .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-grid .gallery-item:hover::before {
    opacity: 1;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-grid .gallery-item .delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.gallery-grid .gallery-item:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.gallery-grid .gallery-item .delete-btn:hover {
    background: #dc3545;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.gallery-grid .gallery-item .delete-btn:active {
    transform: scale(0.95);
}

/* Upload Progress Overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-overlay.active {
    display: flex;
}

.upload-progress-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    min-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.upload-progress-box .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 135, 247, 0.2);
    border-top-color: #0087F7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-progress-box h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.upload-progress-box p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.toggle-password{
    position: absolute;
    top: 40px;
    right: 20px;
    cursor: pointer;
    color: #6c757d;
}

.min-h-340px{min-height: 340px;}
.valid-error{
    border: solid 1px;
    border-color: #a22 !important;
}

/* ====== Dil Kartları Drag & Drop ====== */
.lang-drag-handle {
    cursor: grab;
    padding: 4px 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}
.lang-drag-handle:hover {
    background: #f1f1f4;
    cursor: grab;
}
.lang-drag-handle:hover i {
    color: #4e5cbb !important;
}
.lang-drag-handle:active {
    cursor: grabbing;
}
.lang-dragging {
    z-index: 999;
    transform: rotate(1.5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}
.lang-dragging > .card {
    border-color: #4e5cbb !important;
    background: #fafaff;
}
.lang-sort-placeholder {
    border: 2px dashed #b5b5c3;
    border-radius: 12px;
    background: #f5f5ff;
    min-height: 120px;
    margin-bottom: 0;
}
.gallery-dropzone{border:2px dashed #e4e6ef;border-radius:8px;padding:28px 20px;text-align:center;cursor:pointer;transition:all .2s;background:#fafafa}
.gallery-dropzone:hover,.gallery-dropzone.dz-drag-hover{border-color:#009ef7;background:#f1faff}
.gallery-dropzone .dz-icon{font-size:2.2rem;color:#b5b5c3;margin-bottom:6px;transition:color .2s}
.gallery-dropzone.dz-drag-hover .dz-icon{color:#009ef7}
#dzPreviews{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;justify-content:center}
.dz-preview{width:72px;position:relative;border-radius:6px;overflow:hidden;border:1px solid #e4e6ef;background:#fff}
.dz-preview .dz-image{width:72px;height:54px;overflow:hidden}
.dz-preview .dz-image img{width:100%;height:100%;object-fit:cover}
.dz-preview .dz-progress{position:absolute;bottom:14px;left:3px;right:3px;height:3px;background:rgba(0,0,0,.12);border-radius:2px;overflow:hidden}
.dz-preview .dz-progress-bar{height:100%;background:#009ef7;width:0;transition:width .2s}
.dz-preview.dz-success .dz-progress-bar{background:#50cd89;width:100%}
.dz-preview.dz-error .dz-progress-bar{background:#f1416c;width:100%}
.dz-preview .dz-filename{font-size:9px;color:#a1a5b7;padding:2px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ====== Post Galeri Kartları ====== */
#galleryContainer .gallery-item{
    margin-bottom:12px;
    position:relative;
}
#galleryContainer .gallery-thumb{
    position:relative;
    border-radius:10px;
    overflow:hidden;
    border:2px solid transparent;
    transition:all .25s ease;
    background:#f5f8fa;
    cursor:pointer;
}
#galleryContainer .gallery-thumb img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    display:block;
    transition:transform .3s ease;
}
#galleryContainer .gallery-thumb:hover img{
    transform:scale(1.05);
}

/* Overlay */
#galleryContainer .gallery-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.10) 40%, rgba(0,0,0,.25) 100%);
    opacity:0;
    transition:opacity .25s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px;
    z-index:3;
    pointer-events:none;
}
#galleryContainer .gallery-thumb:hover .gallery-overlay{
    opacity:1;
    pointer-events:auto;
}

/* Overlay Butonları */
#galleryContainer .gallery-overlay .btn{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.95);
    border:none;
    color:#3f4254;
    font-size:14px;
    line-height:1;
    padding:0;
    transition:all .2s ease;
    transform:translateY(8px);
    opacity:0;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
    pointer-events:auto;
    position:relative;
    z-index:5;
}
#galleryContainer .gallery-overlay a.btn{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}
#galleryContainer .gallery-thumb:hover .gallery-overlay .btn{
    transform:translateY(0);
    opacity:1;
}
#galleryContainer .gallery-thumb:hover .gallery-overlay .btn:nth-child(1){transition-delay:.02s}
#galleryContainer .gallery-thumb:hover .gallery-overlay .btn:nth-child(2){transition-delay:.06s}
#galleryContainer .gallery-thumb:hover .gallery-overlay .btn:nth-child(3){transition-delay:.10s}
#galleryContainer .gallery-thumb:hover .gallery-overlay .btn:nth-child(4){transition-delay:.14s}
#galleryContainer .gallery-overlay .btn:hover{
    background:#009ef7;
    color:#fff;
    transform:translateY(0) scale(1.15);
    box-shadow:0 4px 14px rgba(0,158,247,.4);
}
#galleryContainer .gallery-overlay .btn:hover .text-danger{
    color:#fff!important;
}
#galleryContainer .gallery-overlay .gallery-delete-btn:hover{
    background:#f1416c;
    box-shadow:0 4px 14px rgba(241,65,108,.4);
}

/* Seçim */
#galleryContainer .gallery-item.selected .gallery-thumb{
    border-color:#009ef7;
    box-shadow:0 0 0 2px rgba(0,158,247,.35);
}
#galleryContainer .gallery-item.selected .gallery-check{
    display:flex!important;
}
#galleryContainer .gallery-check{
    display:none;
    position:absolute;
    top:6px;
    left:6px;
    z-index:4;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#009ef7;
    color:#fff;
    align-items:center;
    justify-content:center;
    font-size:10px;
    box-shadow:0 2px 6px rgba(0,158,247,.4);
}

/* Başlık */
.gallery-title{
    font-size:11px;
    color:#7e8299;
    margin-top:5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    padding:0 2px;
    text-align:center;
}

/* Sıralama Placeholder */
.gallery-sort-placeholder{
    background:#f1faff;
    border:2px dashed #009ef7;
    border-radius:10px;
    min-height:100px;
    margin-bottom:12px;
}

/* ====== Modal CKEditor Mini ====== */
#imgEditModalBody .ck-editor{margin-bottom:0}
#imgEditModalBody .ck.ck-editor__editable_inline{min-height:80px;max-height:200px}

/* ====== Jcrop ====== */
.jcrop-holder{-ms-touch-action:none;touch-action:none;direction:ltr;text-align:left}
.jcrop-vline,.jcrop-hline{background:#FFF url(../../_public/img/jcrop.gif);font-size:0;position:absolute}
.jcrop-vline{height:100%;width:1px!important}
.jcrop-vline.right{right:0}
.jcrop-hline{height:1px!important;width:100%}
.jcrop-hline.bottom{bottom:0}
.jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;height:100%;width:100%}
.jcrop-handle{background-color:#333;border:1px #EEE solid;font-size:1px;height:7px;width:7px}
.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0}
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px}
.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%}
.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%}
.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0}
.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0}
.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0}
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px}
.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%}
.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px}

.btn>i{display: inline-block !important;}

/* ===== Messages v2 ===== */

/* Card layout */
.c7-msg-card { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 580px; }
.c7-msg-card-header { min-height: 56px; }
.c7-msg-body { flex: 1; overflow: hidden; }

/* ── Conv Panel (left) ── */
.c7-conv-panel {
    width: 300px; min-width: 240px;
    flex-shrink: 0;
    display: flex; flex-direction: column;
    border-right: 1px solid #f1f3f6;
    background: #fff; height: 100%;
}
.c7-conv-search { padding: 12px 14px; border-bottom: 1px solid #f1f3f6; flex-shrink: 0; }
.c7-conv-list   { flex: 1; overflow-y: auto; }

/* Conv items — replaces old .c7-conv-item */
.c7-conv-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background .12s; user-select: none;
}
.c7-conv-item:hover  { background: #f8f9fa !important; }
.c7-conv-item.active { background: #eef7f8 !important; border-right: 3px solid #144c5c; }

.c7-conv-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.5px;
}
.c7-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }

.c7-conv-info     { flex: 1; min-width: 0; }
.c7-conv-name     { font-weight: 600; font-size: 13px; color: #181c32; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c7-conv-time     { font-size: 11px; color: #a1a5b7; white-space: nowrap; flex-shrink: 0; }
.c7-conv-last-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 2px; }
.c7-conv-last     { font-size: 12px; color: #a1a5b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.c7-conv-badge    {
    background: #144c5c; color: #fff; font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Chat Panel (right) ── */
.c7-chat-panel {
    flex: 1; display: flex; flex-direction: column;
    min-width: 0; background: #f5f7fa; height: 100%;
}
.c7-chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-bottom: 1px solid #f1f3f6;
    background: #fff; flex-shrink: 0; min-height: 62px;
}
.c7-chat-title    { font-weight: 700; font-size: 14.5px; color: #181c32; }
.c7-chat-subtitle { font-size: 12px; color: #a1a5b7; }

/* Placeholder */
.c7-chat-placeholder {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #c5ccd6; text-align: center; padding: 20px;
}

/* Messages scroll area */
.c7-chat-messages {
    flex: 1; overflow-y: auto;
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 2px;
    scroll-behavior: smooth;
}

/* Empty / loading states */
.c7-chat-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 200px; color: #a1a5b7; text-align: center;
}
.c7-loading-msgs { display: flex; align-items: center; justify-content: center; padding: 40px; color: #a1a5b7; }

/* ── Bubbles ── */
.c7-bubble-wrap {
    display: flex; align-items: flex-end; gap: 8px;
    max-width: 78%; margin-bottom: 2px;
}
.c7-bubble-wrap.mine   { margin-left: auto;  flex-direction: row-reverse; }
.c7-bubble-wrap.theirs { margin-right: auto; }

.c7-bubble { max-width: 100%; word-wrap: break-word; overflow-wrap: anywhere; }
.c7-bubble.mine   { background: #144c5c; color: #fff;    border-radius: 18px 18px 4px 18px; }
.c7-bubble.theirs { background: #fff;    color: #181c32; border-radius: 18px 18px 18px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.c7-bubble-body { padding: 9px 13px 4px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.c7-bubble-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 10px 7px; }
.c7-bubble-time { font-size: 10.5px; white-space: nowrap; }
.c7-bubble.mine   .c7-bubble-time { color: rgba(255,255,255,.5); }
.c7-bubble.theirs .c7-bubble-time { color: #b0b7c3; }
.c7-tick-wrap { display: inline-flex; align-items: center; }

/* Date separator */
.c7-date-sep { display: flex; align-items: center; justify-content: center; margin: 14px 0 10px; }
.c7-date-sep span { background: #e4e8ef; color: #8b95a5; font-size: 11px; font-weight: 500; padding: 3px 14px; border-radius: 20px; }

/* Typing */
.c7-typing-wrap  { display: flex; align-items: center; gap: 8px; padding: 6px 20px 4px; flex-shrink: 0; }
.c7-typing-dots  { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 12px; padding: 7px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.c7-typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: #a1a5b7;
    display: inline-block; animation: c7dots .9s infinite;
}
.c7-typing-dots span:nth-child(2) { animation-delay: .15s; }
.c7-typing-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes c7dots { 0%,80%,100%{ transform:scale(1);opacity:.45 } 40%{ transform:scale(1.3);opacity:1 } }

/* Input area */
.c7-chat-input { flex-shrink: 0; padding: 10px 16px; border-top: 1px solid #f1f3f6; background: #fff; }
.c7-msg-textarea { resize: none; overflow-y: hidden; max-height: 120px; line-height: 1.5; }
.c7-send-btn { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Conv sub-item (company badge under person name) ── */
.c7-conv-sub { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.c7-conv-subname { font-size: 11px; color: #a1a5b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.c7-comp-logo-mini { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; flex-shrink: 0; }
.c7-comp-logo-mini-txt { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 9px; }

/* ── New Conversation Modal ── */
.c7-nc-group { border-bottom: 1px solid #f1f3f6; }
.c7-nc-group:last-child { border-bottom: 0; }
.c7-nc-group-label {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 20px 6px;
    font-size: 11px; font-weight: 700; color: #7e8299;
    text-transform: uppercase; letter-spacing: .5px;
    background: #f8f9fa;
    position: sticky; top: 0; z-index: 1;
}
.c7-nc-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; cursor: pointer;
    transition: background .12s;
}
.c7-nc-item:hover { background: #f5f8fa; }
.c7-nc-item.disabled { opacity: .55; pointer-events: none; }
.c7-nc-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.c7-nc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c7-nc-avatar span {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
}
.c7-nc-info { flex: 1; min-width: 0; }
.c7-nc-name { font-weight: 600; font-size: 13px; color: #181c32; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c7-nc-role { font-size: 11px; color: #a1a5b7; }

/* Dark mode additions */
[data-bs-theme="dark"] .c7-nc-group-label { background: #1b1b29; }
[data-bs-theme="dark"] .c7-nc-item:hover  { background: #1f1f2f; }
[data-bs-theme="dark"] .c7-nc-name        { color: #cdcfe3; }
[data-bs-theme="dark"] .c7-conv-subname   { color: #5e6282; }
[data-bs-theme="dark"] .c7-nc-group       { border-color: #2b2b40; }

/* Dark mode */
[data-bs-theme="dark"] .c7-conv-panel,
[data-bs-theme="dark"] .c7-chat-header,
[data-bs-theme="dark"] .c7-chat-input  { background: #1e1e2d; border-color: #323248; }
[data-bs-theme="dark"] .c7-conv-item:hover  { background: #28283e !important; }
[data-bs-theme="dark"] .c7-conv-item.active { background: #1b3345 !important; }
[data-bs-theme="dark"] .c7-conv-name        { color: #cdcfe3; }
[data-bs-theme="dark"] .c7-chat-panel       { background: #151521; }
[data-bs-theme="dark"] .c7-bubble.theirs    { background: #2b2b40; color: #cdcfe3; box-shadow: none; }
[data-bs-theme="dark"] .c7-date-sep span    { background: #2a2a3c; color: #8b95a5; }
[data-bs-theme="dark"] .c7-typing-dots      { background: #2b2b40; }
[data-bs-theme="dark"] .c7-chat-placeholder { color: #4a4a6a; }

/* ===== / Messages v2 ===== */

/* ── Bubble action buttons (kopyala / sil) ── */
.c7-bubble-wrap { position: relative; }
/* Butonlar bubble'ın ÜSTÜNDE, yatay sıralı */
.c7-bubble-actions {
    display: none;
    flex-direction: row; gap: 4px;
    position: absolute;
    bottom: calc(100% + 4px);  /* bubble'ın hemen üstü */
    top: auto;
    z-index: 20;
}
.c7-bubble-wrap.mine   .c7-bubble-actions { right: 42px; left: auto; }
.c7-bubble-wrap.theirs .c7-bubble-actions { left:  42px; right: auto; }
.c7-bubble-wrap:hover  .c7-bubble-actions { display: flex; }
.c7-bubble-wrap:hover  { z-index: 5; }  /* sibling mesajların üstünde göster */
.c7-action-btn {
    width: 28px; height: 28px; padding: 0;
    border: 1px solid #e4e8ef; border-radius: 7px;
    background: #fff; color: #7e8299;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .12s, color .12s;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.c7-action-btn:hover        { background: #f5f8fa; color: #181c32; }
.c7-action-delete:hover     { background: #fff0f0; color: #e74c3c; border-color: #f5c0c0; }

/* ── File bubble ── */
.c7-bubble-file { padding: 6px 10px; }
.c7-file-img {
    max-width: 220px; max-height: 200px; border-radius: 10px;
    display: block; object-fit: contain; cursor: pointer;
}
/* Resim sarmalayıcı (yükleniyor overlayı için) */
.c7-img-wrap { position: relative; display: inline-block; line-height: 0; }
.c7-img-wrap.c7-img-uploading .c7-file-img { opacity: .65; }
/* Yükleniyor overlay (spinner) */
.c7-upload-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3); border-radius: 10px;
    pointer-events: none;
}
/* Yükleniyor spinner — büyük (resimler için) */
.c7-upload-spinner {
    width: 30px; height: 30px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    animation: c7spin .7s linear infinite;
}
/* Yükleniyor spinner — küçük (dosya satırı için) */
.c7-upload-spinner-sm {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: rgba(255,255,255,.85);
    animation: c7spin .7s linear infinite;
}
@keyframes c7spin { to { transform: rotate(360deg); } }
/* Dosya satırı yüklenirken */
.c7-file-uploading { opacity: .75; pointer-events: none; cursor: default; }
/* Yükleme hata mesajı */
.c7-file-upload-err {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: rgba(255,255,255,.75); padding: 6px 2px;
}
.c7-file-caption {
    font-size: 13px; margin-top: 6px; word-break: break-word; line-height: 1.4;
}
.c7-bubble.mine .c7-file-caption  { color: rgba(255,255,255,.92); }
.c7-bubble.theirs .c7-file-caption { color: #181c32; }
.c7-file-link {
    display: flex; align-items: center;
    text-decoration: none; padding: 4px 6px;
    border-radius: 8px; transition: background .12s;
}
.c7-bubble.mine .c7-file-link { color: rgba(255,255,255,.85); }
.c7-bubble.theirs .c7-file-link { color: #181c32; }
.c7-file-link:hover { background: rgba(0,0,0,.07); }
.c7-file-name { font-size: 12.5px; word-break: break-all; max-width: 200px; }

/* ── File preview bar ── */
.c7-file-preview {
    border-bottom: 1px solid #f1f3f6;
    padding: 6px 12px;
    background: #f8f9fa;
}
.c7-fp-wrap {
    display: flex; align-items: center; gap: 10px;
}
.c7-fp-img {
    max-height: 54px; max-width: 80px; border-radius: 6px; object-fit: contain;
}
.c7-fp-name { font-size: 12px; color: #181c32; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c7-fp-clear {
    width: 22px; height: 22px; border: 0; background: #e4e8ef; border-radius: 50%;
    cursor: pointer; font-size: 14px; line-height: 1; color: #7e8299;
    display: flex; align-items: center; justify-content: center;
}
.c7-fp-clear:hover { background: #d0d3e0; }

/* ── In-conversation search bar ── */
.c7-chat-search {
    padding: 8px 16px;
    border-bottom: 1px solid #f1f3f6;
    background: #fff;
    flex-shrink: 0;
}

/* ── Search highlight ── */
mark.c7-search-hl {
    background: #ffe083; color: #181c32; border-radius: 3px; padding: 0 2px;
}
.c7-bubble-wrap.c7-search-current .c7-bubble {
    outline: 2px solid #f6a623; outline-offset: 2px; border-radius: 18px;
}

/* Dark mode */
[data-bs-theme="dark"] .c7-action-btn   { background: #1e1e2d; border-color: #323248; color: #a1a5b7; }
[data-bs-theme="dark"] .c7-action-btn:hover { background: #2b2b40; color: #cdcfe3; }
[data-bs-theme="dark"] .c7-file-preview { background: #1b1b29; border-color: #323248; }
[data-bs-theme="dark"] .c7-fp-name      { color: #cdcfe3; }
[data-bs-theme="dark"] .c7-fp-clear     { background: #323248; color: #a1a5b7; }
[data-bs-theme="dark"] .c7-chat-search  { background: #1e1e2d; border-color: #323248; }
[data-bs-theme="dark"] mark.c7-search-hl { background: #a07d00; color: #fff; }

/* ===== Live Search Dropdown ===== */
#kt_header_search { position: relative; }
.c7-search-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e4e6ef;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0,0,0,.12);
	z-index: 1055;
	max-height: 480px;
	overflow-y: auto;
	min-width: 320px;
}
[data-bs-theme="dark"] .c7-search-dropdown {
	background: #1e1e2d;
	border-color: #323248;
}
.c7-ls-group-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #a1a5b7;
	padding: 10px 14px 4px;
}
.c7-ls-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	text-decoration: none;
	color: #181c32;
	transition: background .12s;
	cursor: pointer;
}
.c7-ls-item:hover { background: #f9fafb; color: #181c32; text-decoration: none; }
[data-bs-theme="dark"] .c7-ls-item { color: #cdcfe3; }
[data-bs-theme="dark"] .c7-ls-item:hover { background: #2b2b40; color: #cdcfe3; }
.c7-ls-icon { flex-shrink: 0; width: 24px; text-align: center; }
.c7-ls-text { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-grow: 1; }
.c7-ls-text mark { background: #fff3cd; padding: 0 1px; border-radius: 2px; }
.c7-ls-meta { font-size: 11px; color: #a1a5b7; white-space: nowrap; }
.c7-ls-footer { padding: 8px 14px 10px; border-top: 1px solid #f1f3f6; }
/* ===== / Live Search Dropdown ===== */

/* ===== Chat Drawer ===== */
/* NOT: #kt_drawer_chat.drawer — .drawer sınıfı KTDrawer init sonrası gelir;
   sınıf olmadan selector kullanmak sayfayı yüklenirken drawer'ı görünür yapar */
#kt_drawer_chat.drawer { display: flex !important; flex-direction: column; }
#kt_drawer_chat_messenger { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; height: 100%; }
#c7DrawerList, #c7DrawerChat { flex: 1 1 auto; min-height: 0; }
#c7DrawerConvListWrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#c7DrawerMsgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }

.c7-conv-panel-drawer { display: flex; flex-direction: column; gap: 0; }

.c7-conv-item--drawer {
    border-bottom: 1px solid var(--bs-border-color, #f1f3f6);
    transition: background .15s;
    cursor: pointer;
}
.c7-conv-item--drawer:hover { background: var(--bs-light, #f9f9f9); }
[data-bs-theme=dark] .c7-conv-item--drawer:hover { background: rgba(255,255,255,.04); }

.c7-conv-avatar--sm {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
}
.c7-conv-avatar--sm img { width: 100%; height: 100%; object-fit: cover; }

#c7DrawerWsStatus { font-size: 10px; padding: 3px 8px; }
#c7DrawerInput { border-radius: 8px; resize: none; transition: height .1s; }

/* Drawer bubble styles (shares .c7-bubble-row etc with main chat) */
#c7DrawerMsgs .c7-bubble-row { display: flex; margin-bottom: 8px; }
#c7DrawerMsgs .c7-bubble--out { justify-content: flex-end; }
#c7DrawerMsgs .c7-bubble--in  { justify-content: flex-start; }
#c7DrawerMsgs .c7-bubble { max-width: 82%; }
#c7DrawerMsgs .c7-bubble-out { background: #3699ff; color: #fff; border-radius: 14px 14px 0 14px; padding: 8px 12px; font-size: 13px; }
#c7DrawerMsgs .c7-bubble-in  { background: var(--bs-light, #f4f5f6); color: var(--bs-body-color, #181c32); border-radius: 14px 14px 14px 0; padding: 8px 12px; font-size: 13px; }
[data-bs-theme=dark] #c7DrawerMsgs .c7-bubble-in { background: #2b2b40; color: #cdcfda; }
#c7DrawerMsgs .c7-bubble-meta { font-size: 10px; opacity: .65; text-align: right; margin-top: 3px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
/* ===== / Chat Drawer ===== */
