.dropdown-menu {
    max-width: 300px;
    background-color: white !important;
    z-index: 99999 !important;
}

.wt-dashboard-msg-search-list-2 {
    height: auto !important;
    overflow: visible !important;
    background-color: transparent !important;
}

@media (min-width: 993px) {
    .wt-admin-dashboard-msg-2 {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

/* ─── ≥993px: Normal sütun düzeni ─────────────────── */
@media (min-width: 993px) {
    .wt-admin-dashboard-msg-2 .wt-dashboard-msg-user-list {
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        transition: none !important;
    }
    .wt-dashboard-msg-search-list-2 {
        height: auto !important;
        background-color: transparent !important;
    }
    .user-msg-list-btn-close { display: none !important; }
}

/* ─── ≤992px: Sağdan açılan toggle panel ──────────── */
@media (max-width: 992px) {

    /* Filtre sütununu layout'tan çıkar */
    .wt-admin-dashboard-msg-2 {
        flex: 0 0 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Sonuç sütunu tam genişlik */
    .wt-admin-dashboard-msg-2 + .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Filtre paneli — sağdan gizli, slide-in */
    .wt-admin-dashboard-msg-2 .wt-dashboard-msg-user-list {
        position: fixed !important;
        right: -360px !important;
        top: 0 !important;
        height: 100dvh !important;
        width: 320px !important;
        z-index: 10001 !important;
        background: #fff !important;
        box-shadow: -6px 0 32px rgba(0,0,0,0.18) !important;
        transition: right 0.32s cubic-bezier(.4,0,.2,1) !important;
        overflow-y: auto !important;
        padding-bottom: 24px !important;
    }
    .wt-admin-dashboard-msg-2.active .wt-dashboard-msg-user-list {
        right: 0 !important;
    }
    .wt-dashboard-msg-search-list-2 {
        height: auto !important;
        background-color: transparent !important;
    }

    /* Kapat butonu — panel içinde üstte */
    .user-msg-list-btn-close {
        display: none;
        width: 100%;
        padding: 14px 18px 10px;
        background: linear-gradient(135deg, #1967d2, #2d9bb3);
        color: #fff !important;
        border: none;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
        gap: 8px;
        align-items: center;
    }
    .wt-admin-dashboard-msg-2.active .user-msg-list-btn-close {
        display: flex !important;
    }

    /* Floating buton panel açıkken gizlenir (JS ile) */
}

/* ─── Overlay backdrop ─────────────────────────────── */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 50, 0.50);
    z-index: 10000;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.filter-overlay.visible { display: block; }

/* =====================================================
   MODERN FILTER PANEL
   ===================================================== */
.modern-filter-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(25, 103, 210, 0.10);
    border: 1px solid #e8ecf3;
    /* overflow:hidden kaldırıldı — bootstrap-select dropdown'ı kesiyor */
}

/* --- Header --- */
.filter-panel-header {
    background: linear-gradient(135deg, #1967d2 0%, #2d9bb3 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px 16px 0 0;
}
.filter-panel-header .filter-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-active-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    display: none;
}
.filter-active-badge.visible { display: inline-block; }
.filter-reset-btn {
    color: rgba(255,255,255,0.90);
    font-size: 12px;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-reset-btn:hover {
    background: rgba(255,255,255,0.20);
    color: #fff;
    text-decoration: none;
}

/* --- Active chips --- */
.active-filter-chips {
    padding: 10px 14px;
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #f0f3f9;
    background: #fafbff;
}
.active-filter-chips.has-chips { display: flex; }
.filter-chip {
    background: #eef2ff;
    color: #1967d2;
    border-radius: 20px;
    padding: 4px 8px 4px 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #c7d5f8;
}
.filter-chip .chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #8fa3c8;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    flex-shrink: 0;
}
.filter-chip .chip-remove:hover { color: #e53935; }

/* --- Keyword search --- */
.filter-search-bar {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f3f9;
}
.filter-search-input-wrap {
    position: relative;
}
.filter-search-input-wrap input {
    width: 100%;
    border: 1.5px solid #e0e8f5;
    border-radius: 10px;
    padding: 9px 14px 9px 38px;
    font-size: 13px;
    background: #f7f9ff;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.filter-search-input-wrap input::placeholder { color: #adb8d0; }
.filter-search-input-wrap input:focus {
    border-color: #1967d2;
    box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.10);
    background: #fff;
}
.filter-search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa3c8;
    font-size: 16px;
    pointer-events: none;
}

/* --- Accordion wrapper --- */
.filter-accordion { overflow: visible; }

/* --- Accordion section --- */
.filter-section { border-bottom: 1px solid #f0f3f9; }
.filter-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.filter-section-header:hover { background: #f7f9ff; }
.section-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1967d2;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.filter-section.open .section-icon {
    background: #1967d2;
    color: #fff;
}
.section-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}
.section-count {
    background: #1967d2;
    color: #fff;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    display: none;
}
.section-count.visible { display: inline-block; }
.section-chevron {
    color: #8fa3c8;
    font-size: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.filter-section.open .section-chevron { transform: rotate(180deg); }

.filter-section-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease-in-out;
    padding: 0 16px;
    box-sizing: border-box;
}
.filter-section.open .filter-section-body {
    max-height: none;
    overflow: visible;
    padding-top: 4px;
    padding-bottom: 14px;
}

/* --- Select dropdowns --- */
.filter-select-wrap { padding-top: 4px; }
.filter-select-wrap .bootstrap-select { width: 100% !important; }
.filter-select-wrap .bootstrap-select > .dropdown-toggle {
    border: 1.5px solid #e0e8f5 !important;
    border-radius: 10px !important;
    background: #f7f9ff !important;
    font-size: 13px !important;
    padding: 8px 32px 8px 12px !important;
    color: #4a5568 !important;
    box-shadow: none !important;
}
.filter-select-wrap .bootstrap-select > .dropdown-toggle:focus {
    box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.12) !important;
    border-color: #1967d2 !important;
}
/* Açılan liste ve arama kutusu font boyutları */
.filter-select-wrap .dropdown-menu {
    font-size: 13px !important;
}
.filter-select-wrap .dropdown-menu li a,
.filter-select-wrap .dropdown-menu li a span.text {
    font-size: 13px !important;
    padding: 5px 12px !important;
}
.filter-select-wrap .dropdown-menu .bs-searchbox input {
    font-size: 13px !important;
    padding: 5px 10px !important;
    height: 32px !important;
}
.filter-select-wrap .dropdown-menu .bs-searchbox {
    padding: 6px 8px !important;
}

/* --- Pill toggle buttons (job type, position) --- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 4px;
}
.filter-pill-label { display: inline-flex; align-items: center; cursor: pointer; }
.filter-pill-label input[type=checkbox] { display: none; }
.filter-pill-label .pill-text {
    border: 1.5px solid #dde4f0;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    transition: all 0.18s;
    white-space: nowrap;
    line-height: 1.4;
}
.filter-pill-label:hover .pill-text {
    border-color: #1967d2;
    color: #1967d2;
    background: #f0f5ff;
}
.filter-pill-label input[type=checkbox]:checked + .pill-text {
    background: #1967d2;
    color: #fff;
    border-color: #1967d2;
    box-shadow: 0 2px 8px rgba(25, 103, 210, 0.28);
}

/* --- Custom checkboxes (education) --- */
.filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}
.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
    margin: 0;
}
.filter-checkbox-item:hover { background: #f7f9ff; }
.filter-checkbox-item input[type=checkbox] { display: none; }
.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #c5cfe8;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #fff;
}
.filter-checkbox-item input[type=checkbox]:checked ~ .custom-checkbox {
    background: #1967d2;
    border-color: #1967d2;
}
.filter-checkbox-item input[type=checkbox]:checked ~ .custom-checkbox::after {
    content: '';
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}
.filter-checkbox-label {
    font-size: 13px;
    color: #4a5568;
    flex: 1;
    transition: color 0.15s;
}
.filter-checkbox-item input[type=checkbox]:checked ~ .custom-checkbox ~ .filter-checkbox-label {
    color: #1967d2;
    font-weight: 600;
}

/* --- Toggle switch (engelli aday) --- */
.filter-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f9ff;
    border: 1.5px solid #e0e8f5;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}
.filter-toggle-row:hover {
    border-color: #1967d2;
    background: #eef2ff;
}
.toggle-label-group { flex: 1; }
.toggle-main-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    display: block;
}
.toggle-sub-label {
    font-size: 11px;
    color: #8fa3c8;
    display: block;
    margin-top: 2px;
}
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    display: inline-block;
}
.toggle-switch input { display: none; }
.toggle-track {
    position: absolute;
    inset: 0;
    background: #c5cfe8;
    border-radius: 22px;
    transition: background 0.22s;
}
.toggle-switch input:checked + .toggle-track { background: #1967d2; }
.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.20);
    transition: left 0.22s;
}
.toggle-switch input:checked + .toggle-track .toggle-thumb { left: 21px; }

/* --- Filter action buttons --- */
.filter-actions {
    padding: 14px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #f0f3f9;
    background: #fafbff;
}
.btn-filter-submit {
    flex: 1;
    background: linear-gradient(135deg, #1967d2 0%, #2d9bb3 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.btn-filter-submit:hover { opacity: 0.90; transform: translateY(-1px); }
.btn-filter-submit:active { transform: translateY(0); }
.btn-filter-reset {
    background: #fff;
    color: #6b7db3;
    border: 1.5px solid #dde4f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-filter-reset:hover {
    border-color: #e53935;
    color: #e53935;
    text-decoration: none;
}

/* --- Floating filtrele butonu (≤992px) --- */
.filter-floating-btn {
    display: none;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(calc(50% - 20px)) rotate(-90deg);
    z-index: 10000;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1967d2 0%, #2d9bb3 100%);
    color: #fff !important;
    border: none;
    padding: 10px 22px;
    height: 40px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: -3px 0 16px rgba(25, 103, 210, 0.35);
    transition: opacity 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.filter-floating-btn:hover { opacity: 0.88; }
@media (max-width: 992px) {
    .filter-floating-btn { display: inline-flex; }
}

/* =====================================================
   JOB LISTING CARDS
   ===================================================== */

/* Result bar */
.jobs-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #f7f9ff;
    border-radius: 12px;
    border: 1px solid #e8ecf3;
    margin-bottom: 16px;
}
.jobs-result-count {
    font-size: 13.5px !important;
    color: #4a5568;
}
.jobs-result-count strong {
    color: #1967d2;
    font-size: 15px !important;
    font-weight: 700;
}
.jobs-loading-indicator {
    display: none;
    align-items: center;
    gap: 7px;
    color: #1967d2;
    font-size: 13px !important;
    font-weight: 500;
}

/* Card list */
.job-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Card */
.job-card {
    background: #fff;
    border: 1px solid #dce6f3;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 3px 16px rgba(25,103,210,0.09);
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.18s;
    text-decoration: none !important;
    color: inherit;
}
.job-card:hover {
    box-shadow: 0 8px 28px rgba(25,103,210,0.14);
    border-color: #c7d5f8;
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Logo */
.job-card-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid #e8ecf3;
    background: #f7f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
}
.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}
.job-card-logo .logo-initials {
    font-size: 17px;
    font-weight: 700;
    color: #1967d2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
}

/* Body */
.job-card-body {
    flex: 1;
    min-width: 0;
}
.job-card-title {
    font-size: 14px !important;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.4;
}
.job-card-title:hover { color: #1967d2; text-decoration: none; }
.job-card-company {
    font-size: 12.5px !important;
    font-weight: 600;
    color: #2d9bb3;
    margin-bottom: 7px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-card-company:hover { color: #1967d2; text-decoration: none; }

/* Tags */
.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.job-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 1.6;
}
.job-card-tag i { font-size: 10px; }
.tag-city    { background:#f0f7ff; color:#3b82f6; border:1px solid #dbeafe; }
.tag-type    { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.tag-new     { background:linear-gradient(135deg,#1967d2,#2d9bb3); color:#fff; border:none; font-weight:700; }
.tag-disabled { background:#fef3f2; color:#e53935; border:1px solid #fecdd3; }

/* Action */
.job-card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.job-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1967d2;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.job-card:hover .job-card-arrow {
    background: #1967d2;
    color: #fff;
}
.job-card-bookmark {
    color: #c5cfe8;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.job-card-bookmark.active { color: #1967d2; }

/* Empty state */
.jobs-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8fa3c8;
}
.jobs-empty-state i { font-size: 46px; display: block; margin-bottom: 14px; opacity: 0.35; }
.jobs-empty-state p { font-size: 14px !important; font-weight: 500; margin-bottom: 12px; }
.jobs-empty-state a { color: #1967d2; font-size: 13px !important; }

/* Transition for AJAX */
#jobs-results-container { transition: opacity 0.25s ease; }

@media (max-width: 576px) {
    .job-card { flex-wrap: wrap; }
    .job-card-action { flex-direction: row; width: 100%; justify-content: space-between; }
}
