/**
 * JO Modern Design System
 * Reusable utility classes untuk halaman yang butuh tampilan informatif & modern.
 * Konsisten dengan brand: biru navy, glass-morphism subtle, soft shadows.
 *
 * Pakai dengan:
 *   <link rel="stylesheet" href="{{ asset('css/jo-modern.css') }}">
 *   atau @push('styles') di blade.
 */

/* ============================================ */
/* 1. PAGE HEADER (judul + actions)             */
/* ============================================ */
.jo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.jo-page-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--jo-text);
    font-size: 1.35rem;
    margin: 0 0 2px;
    line-height: 1.1;
}
.jo-page-subtitle {
    font-size: 0.78rem;
    color: var(--jo-text-muted);
    font-weight: 500;
}

/* ============================================ */
/* 2. STAT PILLS (small horizontal stat cards)  */
/* ============================================ */
.jo-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.jo-stat-pill {
    background: #fff;
    border: 1px solid var(--jo-border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.18s ease;
    text-decoration: none !important;
    color: var(--jo-text) !important;
}
.jo-stat-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--jo-primary);
}
.jo-stat-pill.is-active {
    background: var(--jo-primary-soft);
    border-color: var(--jo-primary);
}
.jo-stat-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.jo-stat-pill-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--jo-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.jo-stat-pill-label {
    font-size: 0.66rem;
    color: var(--jo-text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ============================================ */
/* 3. MODERN CARD (with optional color stripe)  */
/* ============================================ */
.jo-modern-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--jo-border);
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.jo-modern-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.jo-modern-card-stripe {
    height: 4px;
    background: var(--jo-primary);
}
.jo-modern-card-body {
    padding: 18px;
}
.jo-modern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--jo-border);
    background: #FAFBFD;
}
.jo-modern-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--jo-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================ */
/* 4. ACTION BUTTONS (primary/danger/ghost)     */
/* ============================================ */
.jo-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.2;
}
.jo-action-btn--primary { background: var(--jo-primary); color: #fff; }
.jo-action-btn--primary:hover { background: var(--jo-primary-strong, #1E40AF); color: #fff; }
.jo-action-btn--danger { background: rgba(220,38,38,0.08); color: var(--jo-danger); }
.jo-action-btn--danger:hover { background: rgba(220,38,38,0.15); color: var(--jo-danger); }
.jo-action-btn--ghost { background: transparent; color: var(--jo-text); border-color: var(--jo-border); }
.jo-action-btn--ghost:hover { background: var(--jo-surface-2); }
.jo-action-btn--success { background: var(--jo-success); color: #fff; }
.jo-action-btn--success:hover { background: #15803D; color: #fff; }

/* ============================================ */
/* 5. BADGES                                    */
/* ============================================ */
.jo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.jo-badge--info { background: rgba(14,165,233,0.12); color: #0369A1; }
.jo-badge--success { background: rgba(22,163,74,0.12); color: #15803D; }
.jo-badge--warning { background: rgba(245,158,11,0.12); color: #B45309; }
.jo-badge--danger { background: rgba(220,38,38,0.12); color: var(--jo-danger); }
.jo-badge--violet { background: rgba(139,92,246,0.12); color: #6D28D9; }
.jo-badge--muted { background: var(--jo-surface-2); color: var(--jo-text-muted); }

/* ============================================ */
/* 6. EMPTY STATE                               */
/* ============================================ */
.jo-empty-state {
    background: #fff;
    border: 2px dashed var(--jo-border);
    border-radius: 18px;
    padding: 60px 24px;
    text-align: center;
}
.jo-empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--jo-primary-soft);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jo-empty-state h5 {
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

/* ============================================ */
/* 7. INFO BANNER (subtle alert)                */
/* ============================================ */
.jo-info-banner {
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
}
.jo-info-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(59,130,246,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.jo-info-banner-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--jo-text);
    margin-bottom: 2px;
}
.jo-info-banner-text {
    font-size: 0.72rem;
    color: var(--jo-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================ */
/* 8. SEGMENTED CONTROL (pill tabs/filters)     */
/* ============================================ */
.jo-segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--jo-surface-2);
    border-radius: 12px;
}
.jo-segmented a, .jo-segmented button {
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jo-text-muted);
    text-decoration: none;
    border: none;
    background: transparent;
    transition: all 0.15s;
    cursor: pointer;
}
.jo-segmented a:hover, .jo-segmented button:hover {
    color: var(--jo-text);
}
.jo-segmented a.active, .jo-segmented button.active {
    background: #fff;
    color: var(--jo-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ============================================ */
/* 9b. NOTIFICATION DROPDOWN PANEL              */
/* ============================================ */
.jo-alerts-wrap { position: relative; display: inline-flex; align-items: center; }
.jo-alerts-panel {
    /* Pakai position:fixed untuk escape overflow:hidden dari .jo-float-actions-group.
       Posisi top/right di-set via JS berdasarkan trigger button. */
    position: fixed;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.18),
        0 4px 12px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: all 0.18s ease;
    overflow: hidden;
}
.jo-alerts-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.jo-alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
}
.jo-alerts-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--jo-text);
    letter-spacing: -0.01em;
}
.jo-alerts-subtitle {
    font-size: 0.7rem;
    color: var(--jo-text-muted);
    font-weight: 500;
    margin-top: 2px;
}
.jo-alerts-viewall {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--jo-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s;
}
.jo-alerts-viewall:hover {
    background: rgba(59,130,246,0.1);
    color: var(--jo-primary);
}
.jo-alerts-body {
    max-height: 60vh;
    overflow-y: auto;
}
.jo-alerts-loading, .jo-alerts-empty {
    padding: 30px 16px;
    text-align: center;
}
.jo-alerts-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    color: var(--jo-text) !important;
    transition: background 0.12s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.jo-alerts-item:last-child { border-bottom: 0; }
.jo-alerts-item:hover { background: rgba(59,130,246,0.06); }
.jo-alerts-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.jo-alerts-item-icon svg { width: 18px; height: 18px; }
.jo-alerts-item.is-critical .jo-alerts-item-icon { background: rgba(153,27,27,0.12); color: #991B1B; }
.jo-alerts-item.is-danger .jo-alerts-item-icon { background: rgba(220,38,38,0.12); color: var(--jo-danger); }
.jo-alerts-item.is-warning .jo-alerts-item-icon { background: rgba(217,119,6,0.12); color: #D97706; }
.jo-alerts-item.is-info .jo-alerts-item-icon { background: rgba(14,165,233,0.12); color: #0369A1; }
.jo-alerts-item.is-success .jo-alerts-item-icon { background: rgba(22,163,74,0.12); color: #16A34A; }
.jo-alerts-item.is-muted .jo-alerts-item-icon { background: var(--jo-surface-2); color: var(--jo-text-muted); }
.jo-alerts-item-body {
    flex: 1;
    min-width: 0;
}
.jo-alerts-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--jo-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jo-alerts-item-subtitle {
    font-size: 0.7rem;
    color: var(--jo-text-muted);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jo-alerts-item-time {
    font-size: 0.65rem;
    color: var(--jo-text-subtle);
    font-weight: 600;
    flex-shrink: 0;
}
.has-alerts .badge-count {
    animation: jo-pulse 1.5s ease-in-out infinite;
}
@keyframes jo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Section group header dalam panel notif */
.jo-alerts-section + .jo-alerts-section {
    border-top: 6px solid var(--jo-surface-2, #F3F4F6);
}
.jo-alerts-section-head {
    padding: 10px 16px 8px;
    background: #F9FAFB;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.jo-alerts-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.jo-alerts-section-count {
    margin-left: auto;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}
.jo-alerts-section-desc {
    font-size: 0.68rem;
    margin-top: 2px;
    opacity: 0.7;
    font-weight: 500;
    line-height: 1.3;
}

/* Unread vs Read state */
.jo-alerts-item.is-read {
    opacity: 0.55;
}
.jo-alerts-item.is-read .jo-alerts-item-title {
    font-weight: 600;
}
.jo-alerts-item.is-unread {
    background: rgba(59, 130, 246, 0.04);
    position: relative;
}
.jo-alerts-unread-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #DC2626;
    flex-shrink: 0;
    margin: 0 6px 0 0;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
    align-self: center;
}

/* Mark all-read button */
.jo-alerts-readall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--jo-primary, #2563EB);
    border: 0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s;
}
.jo-alerts-readall:hover { background: rgba(59, 130, 246, 0.15); }

/* ============================================ */
/* 9. AVATAR (circle dengan inisial)            */
/* ============================================ */
.jo-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    overflow: hidden;
    flex-shrink: 0;
}
.jo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jo-avatar--sm { width: 28px; height: 28px; font-size: 0.66rem; }
.jo-avatar--md { width: 36px; height: 36px; }
.jo-avatar--lg { width: 48px; height: 48px; font-size: 0.92rem; }

/* ============================================== */
/* SELECT2 — modern override                       */
/* ============================================== */

/* Trigger button */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid #E5E7EB !important;
    background: #fff !important;
    transition: border-color .15s, box-shadow .15s;
    padding: 0 !important;
}
.select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}
.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    padding: 4px 10px !important;
}
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover {
    border-color: #94A3B8 !important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827 !important;
    line-height: 1.4 !important;
    padding-left: 0 !important;
    padding-right: 22px !important;
    font-weight: 500;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94A3B8 !important;
    font-weight: 400;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    width: 28px !important;
    right: 10px !important;
    top: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6B7280 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #2563EB transparent !important;
    border-width: 0 4px 5px 4px !important;
}
.select2-container--default .select2-selection__clear {
    color: #94A3B8 !important;
    margin-right: 24px !important;
    font-size: 1.1rem !important;
}
.select2-container--default .select2-selection__clear:hover { color: #DC2626 !important; }

/* Multi-select chips */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE) !important;
    color: #1E40AF !important;
    border: 1px solid #93C5FD !important;
    border-radius: 8px !important;
    padding: 4px 10px 4px 28px !important;
    font-weight: 600;
    font-size: 0.82rem;
    margin-top: 4px !important;
    margin-right: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1E40AF !important;
    font-weight: 700;
    margin-right: 4px !important;
    padding: 0 4px !important;
    border-radius: 4px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #DC2626 !important;
    color: #fff !important;
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
    border: 1px solid #E5E7EB !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 48px -8px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden;
    margin-top: 4px;
}
.select2-container--default .select2-dropdown.select2-dropdown--above { margin-top: -4px; margin-bottom: 4px; }

/* Search input inside dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 10px 12px !important;
    background: #F9FAFB;
    border-bottom: 1px solid #F3F4F6;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #E5E7EB !important;
    border-radius: 9px !important;
    padding: 8px 12px !important;
    font-size: 0.92rem !important;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10) !important;
    outline: 0 !important;
}

/* Results list */
.select2-container--default .select2-results__options,
.select2-container .select2-results__options {
    max-height: 280px !important;
    padding: 6px 6px !important;
}
.select2-container--default .select2-results__option,
.select2-container .select2-results__option {
    padding: 9px 12px !important;
    font-size: 0.9rem !important;
    color: #111827 !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: background .12s, color .12s !important;
    background: transparent !important;
}

/* HIGHLIGHTED (hover/keyboard) — gradient biru, override Metronic */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background-color: #3B82F6 !important;
    background: linear-gradient(135deg, #2563EB, #3B82F6) !important;
    color: #fff !important;
    font-weight: 500 !important;
}

/* SELECTED state (when not hovered) */
.select2-container--default .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background-color: rgba(37, 99, 235, 0.10) !important;
    background: rgba(37, 99, 235, 0.10) !important;
    color: #1E40AF !important;
    font-weight: 700 !important;
}

/* SELECTED + HIGHLIGHTED — gradient lebih gelap */
.select2-container--default .select2-results__option[aria-selected="true"].select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background: linear-gradient(135deg, #1E40AF, #2563EB) !important;
    color: #fff !important;
}

/* No results */
.select2-container--default .select2-results__option--disabled,
.select2-container--default .select2-results__message {
    color: #94A3B8 !important;
    font-style: italic;
    text-align: center;
    padding: 16px 12px !important;
}

/* Dark mode */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
    background: #1B2438 !important;
    border-color: #2A3349 !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #F3F4F6 !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-dropdown {
    background: #131A2A;
    border-color: #2A3349 !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown {
    background: #1B2438;
    border-bottom-color: #2A3349;
}
[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
    background: #131A2A;
    border-color: #2A3349 !important;
    color: #F3F4F6;
}
[data-bs-theme="dark"] .select2-container--default .select2-results__option {
    color: #E5E7EB;
}
[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #93C5FD !important;
}

/* ============================================
   SELECT2 — MODERN COMPACT OVERRIDES (v2)
   Auto-apply ke semua select2 di app.
   ============================================ */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: 4px 0 !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all .15s ease !important;
    font-size: 0.86rem !important;
}
.select2-container--default .select2-selection--single:hover { border-color: #93C5FD !important; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    padding: 0 32px 0 12px !important;
    color: #1E293B !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94A3B8 !important;
    font-weight: 500 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    width: 28px !important;
    right: 6px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94A3B8 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    transition: transform .2s !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(180deg) translateY(-3px) !important;
    border-color: #3B82F6 transparent transparent transparent !important;
}

/* Multiselect */
.select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    padding: 3px 8px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 8px !important;
    background: #fff !important;
}
.select2-container--default .select2-selection--multiple:hover { border-color: #93C5FD !important; }
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE) !important;
    color: #1E40AF !important;
    border: 1px solid #93C5FD !important;
    border-radius: 6px !important;
    padding: 2px 8px 2px 6px !important;
    margin: 2px 4px 2px 0 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1E40AF !important;
    margin-right: 4px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: rgba(220,38,38,0.15) !important;
    color: #B91C1C !important;
    border-radius: 3px !important;
}

/* Dropdown — modern shadow + animation */
.select2-container--default .select2-dropdown {
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px -8px rgba(15,23,42,0.18), 0 4px 8px rgba(15,23,42,0.06) !important;
    overflow: hidden !important;
    margin-top: 6px !important;
    animation: select2FadeIn 0.15s ease-out !important;
}
@keyframes select2FadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search di dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 10px 10px 6px 10px !important;
    background: #FAFBFD !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 7px 10px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 0.84rem !important;
    color: #1E293B !important;
    outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
}

/* Result list — kompak */
.select2-container--default .select2-results__options,
.select2-container .select2-results__options {
    max-height: 280px !important;
    padding: 4px 4px !important;
}
.select2-container--default .select2-results__option,
.select2-container .select2-results__option {
    padding: 7px 10px !important;
    font-size: 0.84rem !important;
    color: #1E293B !important;
    border-radius: 7px !important;
    margin: 1px 0 !important;
    transition: background .12s, color .12s, transform .08s !important;
    background: transparent !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

/* HIGHLIGHTED hover */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background: linear-gradient(135deg, #2563EB, #3B82F6) !important;
    color: #fff !important;
    font-weight: 600 !important;
    transform: translateX(2px) !important;
}

/* SELECTED */
.select2-container--default .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background: rgba(37,99,235,0.08) !important;
    color: #1E40AF !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-right: 28px !important;
}
.select2-container--default .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted)::after {
    content: '\2713' !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important; transform: translateY(-50%) !important;
    font-weight: 900 !important;
    color: #1E40AF !important;
    font-size: 0.9rem !important;
}

/* SELECTED + HIGHLIGHTED */
.select2-container--default .select2-results__option[aria-selected="true"].select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background: linear-gradient(135deg, #1E40AF, #2563EB) !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected="true"].select2-results__option--highlighted::after,
.select2-container--default .select2-results__option--highlighted[aria-selected="true"]::after {
    color: #fff !important;
}

/* Disabled / no results */
.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: #94A3B8 !important;
    font-style: italic !important;
    font-weight: 500 !important;
}
.select2-container--default .select2-results__option--disabled,
.select2-container--default .select2-results__message {
    color: #94A3B8 !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 14px 12px !important;
}

/* Clear button */
.select2-container--default .select2-selection__clear {
    margin-right: 24px !important;
    color: #94A3B8 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.select2-container--default .select2-selection__clear:hover { color: #DC2626 !important; }

/* form-floating compat */
.form-floating > .select2-container--default {
    width: 100% !important;
}
.form-floating > .select2-container--default .select2-selection--single {
    height: 58px !important;
    padding: 24px 0 6px 0 !important;
}
.form-floating > .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 14px !important;
}
.form-floating > .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 56px !important;
}
