        /* Efek loading langsung untuk tampilan cepat */
        body.form-submitting .content-wrapper {
            opacity: 0.6;
            pointer-events: none;
        }

        .content-wrapper {
            position: relative;
        }

        /* Gaya pesan error */
        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            border: 1px solid #f5c6cb;
            text-align: center;
        }

        /* Gaya untuk header tabel */
        .table-header {
            background-color: #f8f9fa;
            padding: 10px 15px;
            margin-top: 25px;
            border-radius: 5px 5px 0 0;
            font-weight: bold;
            border-bottom: 2px solid #e9ecef;
        }

        /* Kelas highlight untuk hasil pencarian - latar kuning */
        .highlight {
            background-color: #FFFF00;
            font-weight: bold;
            padding: 2px 2px;
            border-radius: 2px;
            color: #000;
        }

        /* Gaya untuk tooltip logo partai */
        .party-tooltip {
            display: none;
            position: absolute;
            background-color: #333;
            font-size: 15px;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            z-index: 100;
            font-weight: bold;
            white-space: nowrap;
            left: 50%;
            transform: translateX(-50%);
            top: -40px;
        }

        .party-tooltip:after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }

        .party-logo-container {
            position: relative;
            display: inline-block;
        }

        .party-logo-container:hover .party-tooltip {
            display: block;
        }

        /* Tampilan informasi dapil yang lebih elegan */
        .dapil-info {
            display: flex;
            align-items: center;
            margin-top: 6px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12px;
            font-weight: 500;
            letter-spacing: 0.2px;
            color: #333;
            padding: 2px 4px 2px 4px;
        }

        .dapil-info:before {
            content: "\f3c5";
            /* Ikon penanda peta */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-right: 5px;
            color: #00897B;
            font-size: 12px;
        }

        /* Kontainer teks dapil untuk wrapping yang lebih baik */
        .dapil-text {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Dapil info saat di-highlight */
        .dapil-info .highlight {
            background-color: #FFFF00;
            border-radius: 2px;
            padding: 2px 2px;
            font-weight: bold;
            color: #000;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        }

        /* Efek zoom untuk foto legislator */
        .zoom-effect {
            transition: transform 0.3s ease;
        }

        .zoom-effect:hover {
            transform: scale(1.1);
        }

        /* Mobile link styles - clean and compact */
        .mobile-link {
            display: none;
            /* Hidden by default */
            color: inherit;
            /* Inherit text color */
            text-decoration: none;
            /* Remove underline */
        }

        .mobile-name-link:hover {
            color: #00897B;
            /* Modern hover color */
        }

        .desktop-photo,
        .desktop-name {
            display: inline;
            /* Show by default */
        }

        <?php if ($isSearchMode || $isFilterMode): ?>.hide-on-search {
            display: none !important;
        }

        <?php endif; ?>

        /* Gaya Header Section */
        .header {
            /* Hapus background gradasi agar tidak menimpa warna asli gambar */
            background: none;
            color: white;
            padding: 3rem 1rem;
            text-align: center;
            border-radius: 0 0 20px 20px;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url("asset/legislatif.webp");
            background-size: cover;
            background-position: center;
            z-index: 0;
            /* Hapus opacity agar warna asli terlihat */
            /* Jika ingin efek gelap tanpa ubah warna asli, bisa pakai filter */
            filter: brightness(0.8);
            /* Atau sesuaikan misal 0.8 untuk sedikit gelap */
        }

        .header-content {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .header-title {
            font-size: 35px;
            font-weight: bold;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 2px #000000;
        }

        .header-description {
            font-size: 16px;
            font-weight: bold;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 2px #000000;
        }

        /* Gaya Filter Section yang Ditingkatkan */
        .filter-section {
            margin: 18px 0 28px 0;
            background-color: #f8f9fa;
            padding: 22px;
            border-radius: 14px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.07);
            transition: all 0.25s ease;
        }

        .filter-container {
            max-width: 1120px;
            margin: 0 auto;
        }

        .filter-row {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .filter-item {
            display: flex;
            align-items: center;
            position: relative;
            flex: 1;
            min-width: 0;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(0, 0, 0, 0.09);
            padding: 0 14px;
            height: 46px;
            transition: all 0.2s ease;
        }

        .filter-item:hover {
            border-color: rgba(0, 0, 0, 0.18);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.09);
            transform: translateY(-1px);
        }

        .search-filter-item {
            flex: 2;
        }

        /* Gaya filter item yang dinonaktifkan */
        .filter-item.disabled {
            opacity: 0.75;
            cursor: not-allowed;
            background-color: #f8f8f8;
            border-color: rgba(0, 0, 0, 0.05);
        }

        .filter-item.disabled select,
        .filter-item.disabled .filter-icon {
            pointer-events: none;
            color: #aaa;
            cursor: not-allowed;
        }

        .filter-item.disabled .dropdown-arrow {
            color: #ccc;
        }

        .filter-icon {
            color: #00897B;
            margin-right: 10px;
            font-size: 15px;
            opacity: 0.9;
        }

        .filter-item select {
            width: 100%;
            height: 100%;
            padding: 0 20px 0 0;
            border: none;
            background: transparent;
            appearance: none;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 15px;
            font-weight: 500;
            color: #444;
            cursor: pointer;
            outline: none;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            max-height: 46px;
        }

        .filter-item select:focus {
            color: #000;
        }

        .dropdown-arrow {
            position: absolute;
            right: 12px;
            color: #aaa;
            font-size: 13px;
            pointer-events: none;
            transition: transform 0.2s ease;
        }

        .filter-item:hover .dropdown-arrow {
            color: #777;
        }

        .filter-item:focus-within .dropdown-arrow {
            transform: rotate(180deg);
            color: #00897B;
        }

        /* Gaya Pencarian yang Terintegrasi */
        .search-input-container {
            width: 100%;
            position: relative;
            display: flex;
            align-items: center;
        }

        #search-input {
            width: 100%;
            height: 46px;
            border-radius: 10px;
            border: none;
            background-color: transparent;
            padding: 0 50px 0 38px;
            font-size: 15px;
            color: #333;
            outline: none;
            font-weight: 400;
            letter-spacing: 0.2px;
        }

        #search-input::placeholder {
            color: #333;
            font-weight: 400;
            opacity: 0.75;
        }

        #search-input:focus {
            color: #000;
        }

        #search-input:focus::placeholder {
            color: #bbb;
        }

        .search-icon {
            position: absolute;
            left: 3px;
            color: #00897B;
            font-size: 15px;
            opacity: 0.9;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .filter-item:hover .search-icon,
        .filter-item:focus-within .search-icon {
            opacity: 1;
            transform: scale(1.05);
        }

        .search-button {
            position: absolute;
            right: 3px;
            width: 28px;
            height: 28px;
            border-radius: 15px;
            background-color: #00897B;
            border: none;
            color: white;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            opacity: 0.9;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .search-button:hover {
            opacity: 1;
            background-color: #007b6b;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
        }

        .search-button:active {
            transform: translateY(0);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* Gaya dropdown kustom untuk daftar besar */
        select.scrollable-select {
            scrollbar-width: thin;
        }

        /* Gaya tambahan untuk scroll dropdown */
        select.scrollable-select::-webkit-scrollbar {
            width: 6px;
        }

        select.scrollable-select::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 6px;
        }

        select.scrollable-select::-webkit-scrollbar-thumb {
            background: #ddd;
            border-radius: 6px;
        }

        select.scrollable-select::-webkit-scrollbar-thumb:hover {
            background: #ccc;
        }

        /* Gaya Select2 yang sesuai dengan desain kita */
        .select2-container {
            width: 100% !important;
            height: 46px !important;
        }

        /* Perbaikan masalah lebar dropdown */
        .select2-dropdown {
            width: auto !important;
            min-width: 200px !important;
            max-width: 250px !important;
            left: 0 !important;
        }

        .select2-results__option {
            width: auto !important;
            display: block !important;
        }

        .select2-results__option--highlighted {
            width: auto !important;
            display: block !important;
        }

        .select2-container--default .select2-results>.select2-results__options {
            width: auto !important;
        }

        .select2-container--default .select2-selection--single {
            height: 46px !important;
            display: flex !important;
            align-items: center !important;
            background-color: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
        }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            color: #444 !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 15px !important;
            font-weight: 500 !important;
            padding-left: 0 !important;
            line-height: 46px !important;
            padding-right: 32px !important;
            text-overflow: ellipsis !important;
            overflow: hidden !important;
            white-space: nowrap !important;
        }

        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 46px !important;
            position: absolute !important;
            right: 1px !important;
        }

        /* Perbaikan posisi tombol tutup (X) */
        .select2-container--default .select2-selection--single .select2-selection__clear {
            position: absolute !important;
            right: 25px !important;
            z-index: 10 !important;
            margin-right: 0 !important;
            color: white !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            line-height: 20px !important;
            width: 20px !important;
            height: 20px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 50% !important;
            background-color: #f44336 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
            transition: all 0.2s ease !important;
            border: none !important;
            opacity: 0.9 !important;
            margin-top: 0 !important;
            transform: translateY(0) !important;
            padding: 0 !important;
            font-family: Arial, sans-serif !important;
        }

        .select2-container--default .select2-selection--single .select2-selection__clear:hover {
            background-color: #d32f2f !important;
            /* Warna merah yang lebih gelap saat hover */
            transform: scale(1.1) !important;
            opacity: 1 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        }

        .select2-dropdown {
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
            border: 1px solid rgba(0, 0, 0, 0.1) !important;
            overflow: hidden !important;
        }

        .select2-search--dropdown {
            padding: 8px !important;
            background-color: #f8f9fa !important;
            border-bottom: 1px solid #eee !important;
        }

        .select2-search--dropdown .select2-search__field {
            border-radius: 4px !important;
            padding: 8px 10px !important;
            border: 1px solid #ddd !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 14px !important;
        }

        /* Placeholder untuk kotak pencarian */
        .select2-search--dropdown .select2-search__field::placeholder {
            color: #676767 !important;
            opacity: 0.8 !important;
            font-size: 14px !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
        }

        .select2-results__option {
            padding: 8px 12px !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 15px !important;
            font-weight: 600;
        }

        .select2-container--default .select2-results__option--highlighted[aria-selected] {
            background-color: #f44336 !important;
            color: white !important;
        }

        /* Pastikan teks nama partai berwarna putih saat opsi di-highlight */
        .select2-container--default .select2-results__option--highlighted[aria-selected] .party-name {
            color: white !important;
        }

        /* Perbaikan untuk select2 yang dinonaktifkan */
        .filter-item.disabled .select2-container {
            pointer-events: none;
        }

        .filter-item.disabled .select2-selection {
            opacity: 0.7;
            background-color: #f8f8f8 !important;
        }

        /* Logo partai dalam dropdown */
        .party-option {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .party-logo-dropdown {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }

        .selected-party {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .party-logo-selected {
            width: 16px;
            height: 16px;
            object-fit: contain;
        }

        /* Gaya Jumlah Hasil */
        .results-count {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 10px 15px;
            background-color: #f8f9fa;
            border-radius: 8px;
        }

        /* Gaya pencarian terintegrasi dengan filter */
        .search-summary {
            font-size: 16px;
        }

        .search-summary .count {
            font-weight: bold;
            color: #f44336;
        }

        .search-summary .keyword {
            font-weight: bold;
        }

        /* Gaya Jumlah Hasil untuk filter */
        .filter-results {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 1px 5px #00897b;
            margin-bottom: 2rem;
        }

        /* Tombol Kembali untuk hasil pencarian */
        .show-all {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background-color: #00897B;
            color: white;
            border-radius: 20px;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .show-all:hover {
            background-color: #00695C;
            transform: translateY(-2px);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        }

        .show-all i {
            font-size: 13px;
        }

        /* Tombol Reset untuk hasil filter */
        .reset-button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background-color: #f44336;
            color: white;
            border-radius: 13px;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .reset-button:hover {
            background-color: #d32f2f;
            transform: translateY(-2px);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        }

        .reset-button i {
            font-size: 13px;
        }

        /* Gaya responsif untuk desktop dan mobile */
        @media screen and (max-width: 768px) {

            /* Hide desktop elements */
            .desktop-profile-btn,
            .desktop-photo,
            .desktop-name {
                display: none !important;
            }

            /* Show mobile elements */
            .mobile-link {
                display: block;
            }

            /* Make profile button cell take minimal space */
            .profile-btn-cell {
                display: none !important;
            }

            /* Style for photo link */
            .mobile-photo-link img {
                border: 1px solid #eee;
                transition: all 0.2s ease;
            }

            .mobile-photo-link:active img {
                border-color: #00897B;
            }

            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .table-container table {
                width: 100%;
                table-layout: fixed;
                border-spacing: 0;
                border-collapse: separate;
            }

            /* Terapkan lebar kolom untuk mobile */
            .table-container table tr th:nth-child(1),
            .table-container table tr td:nth-child(1) {
                width: 15%;
                padding: 8px 4px 8px 5px;
            }

            .table-container table tr th:nth-child(2),
            .table-container table tr td:nth-child(2) {
                width: 45%;
                /* Increase width for name column */
                padding: 8px 15px 8px 5px;
                text-align: left;
            }

            /* Tampilkan dan gaya kolom instansi untuk mobile */
            .instansi-column {
                display: table-cell !important;
                width: 40%;
                /* Adjusted for better use of space */
                padding: 8px 5px !important;
                text-align: left;
            }

            /* Buat label instansi lebih kompak pada mobile */
            .instansi-column span {
                padding: 2px 4px !important;
                font-size: 11px !important;
                white-space: normal !important;
                word-break: break-word !important;
                display: inline-block;
                max-width: 100%;
            }

            /* Gaya dapil yang lebih baik untuk mobile */
            .dapil-info {
                margin-top: 6px;
                font-size: 10px;
                padding: 2px 4px 2px 4px;
                width: 100%;
                box-sizing: border-box;
                line-height: 1.3;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                word-break: break-word;
                background-color: rgba(0, 137, 123, 0.08);
                border-radius: 4px;
            }

            .dapil-info:before {
                font-size: 9px;
                display: inline-block;
                min-width: 12px;
                margin-right: -5px;
            }

            /* Penanganan highlight yang lebih baik di mobile */
            .dapil-info .highlight {
                padding: 1px 2px;
                font-weight: 600;
                display: inline;
                line-height: 1.4;
                white-space: normal;
                word-break: break-word;
            }

            /* Sembunyikan kolom logo partai di mobile */
            .table-container table tr th:nth-child(4),
            .table-container table tr td:nth-child(4) {
                display: none;
            }

            .table-container table tr th:nth-child(5),
            .table-container table tr td:nth-child(5) {
                width: 0;
                /* Minimize width */
                padding: 0;
            }

            /* Buat logo partai lebih terlihat di mobile */
            .party-logo-container {
                display: flex;
                justify-content: center;
            }

            .party-logo-container img {
                width: 35px;
                height: 35px;
            }

            /* Sembunyikan tombol profil di mobile */
            .mobile-profile-btn {
                display: none;
            }

            .desktop-profile-btn {
                display: none;
            }

            /* Sesuaikan ukuran foto untuk mobile */
            .legislator-photo {
                width: 45px;
                height: 60px;
                display: block;
                margin: 0 auto;
            }

            /* Ukuran font yang lebih baik untuk mobile */
            .table-container table th,
            .table-container table td {
                font-size: 14px;
                vertical-align: middle;
            }

            /* Kontainer pagination yang lebih baik */
            .pagination-container {
                margin: 35px 0;
                display: flex;
                justify-content: center;
                width: 100%;
            }

            /* Tata letak pagination yang lebih baik untuk mobile */
            .pagination {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 2px;
                padding: 8px 8px;
                font-size: 14px;
                max-width: 100%;
            }

            /* Sembunyikan nomor pagination ekstra di mobile - hanya tampilkan 3 halaman */
            .pagination a.page-number {
                display: none;
            }

            /* Tampilkan hanya halaman saat ini dan satu halaman sebelum/sesudah */
            .pagination a.page-number.active,
            .pagination a.page-number.active-adjacent {
                display: inline-flex;
            }

            /* Buat teks dan nomor halaman dengan jarak yang baik */
            .pagination>* {
                margin: 2px;
            }

            /* Gaya tombol pagination untuk tap yang lebih mudah */
            .pagination a {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 32px;
                height: 32px;
                padding: 0 8px;
                border-radius: 4px;
                background-color: #ffffff;
                text-decoration: none;
                color: #333;
                border: 1px solid #ddd;
                font-weight: bold;
                font-size: 14px;
            }

            /* Gaya halaman aktif */
            .pagination a.active {
                background-color: #00897B;
                color: white;
                border-color: #00897B;
            }

            /* Gaya ikon next/prev */
            .pagination a i {
                font-size: 13px;
            }

            /* Gaya responsif untuk bagian hero pencarian */
            .header-title {
                font-size: 24px;
            }

            .header-description {
                font-size: 14px;
            }

            /* Gaya responsif filter */
            .filter-section {
                padding: 16px 14px;
                margin: 12px 0 22px 0;
                border-radius: 12px;
            }

            .filter-row {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .filter-item {
                width: 100%;
                height: 44px;
                padding: 0 12px;
                border-radius: 8px;
            }

            .filter-item select {
                font-size: 15px;
            }

            .filter-icon {
                font-size: 15px;
                margin-right: 8px;
            }

            .dropdown-arrow {
                right: 10px;
                font-size: 12px;
            }

            /* Penyesuaian pencarian mobile */
            #search-input {
                height: 44px;
                padding: 0 45px 0 36px;
                font-size: 15px;
            }

            .search-icon {
                left: 12px;
                font-size: 15px;
            }

            .search-button {
                height: 30px;
                width: 30px;
                right: 7px;
                font-size: 12px;
            }

            /* Tombol "Kembali" responsif */
            .show-all {
                width: auto;
                min-width: 100px;
                max-width: 150px;
                justify-content: center;
                padding: 8px 12px;
                border-radius: 6px;
                font-size: 13px;
                margin-left: auto;
                margin-right: 0;
            }

            .show-all i {
                font-size: 12px;
            }

            /* Tombol reset responsif - PERBAIKAN */
            .reset-button {
                width: auto;
                min-width: 100px;
                max-width: 150px;
                justify-content: center;
                padding: 8px 12px;
                border-radius: 6px;
                font-size: 13px;
                margin-left: auto;
                margin-right: 0;
            }

            .reset-button i {
                font-size: 12px;
            }

            /* Perbaikan kontainer results-count untuk tampilan mobile yang lebih baik */
            .results-count {
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
                padding: 10px 12px;
                margin-bottom: 15px;
            }

            .search-summary {
                font-size: 14px;
                flex: 1;
                min-width: 200px;
            }

            /* Gaya responsif Select2 */
            .select2-container {
                height: 44px !important;
            }

            .select2-container--default .select2-selection--single {
                height: 44px !important;
            }

            .select2-container--default .select2-selection--single .select2-selection__rendered {
                font-size: 15px !important;
                line-height: 44px !important;
            }

            .select2-container--default .select2-selection--single .select2-selection__arrow {
                height: 44px !important;
            }

            /* Penyesuaian tombol hapus responsif */
            .select2-container--default .select2-selection--single .select2-selection__clear {
                width: 16px !important;
                height: 16px !important;
                font-size: 10px !important;
                margin-right: 6px !important;
            }

            .select2-results__option {
                padding: 6px 8px !important;
                font-size: 13px !important;
            }

            /* Pastikan dropdown pas di mobile */
            .select2-container .select2-dropdown {
                max-width: 92vw !important;
                font-size: 13px !important;
            }

            /* Gaya responsif logo partai */
            .party-logo-dropdown {
                width: 16px;
                height: 16px;
            }

            .party-logo-selected {
                width: 14px;
                height: 14px;
            }
        }

        /* Gaya khusus untuk layar sangat kecil */
        @media screen and (max-width: 320px) {

            /* Penyesuaian untuk layar sangat kecil */
            .table-container {
                font-size: 12px;
            }

            .legislator-photo {
                width: 35px;
                height: 45px;
            }

            .table-container table tr th:nth-child(1),
            .table-container table tr td:nth-child(1) {
                width: 12%;
            }

            .instansi-column span {
                font-size: 10px !important;
            }

            .dapil-info {
                font-size: 9px;
            }

            /* Padding lebih kecil untuk tombol */
            .mobile-profile-btn {
                padding: 6px 8px;
                font-size: 12px;
            }

            /* Sesuaikan input pencarian */
            #search-input {
                height: 42px;
                font-size: 15px;
                padding: 0 42px 0 34px;
            }

            .search-button {
                width: 28px;
                height: 28px;
                right: 7px;
            }

            /* Buat pagination lebih kompak */
            .pagination a {
                min-width: 28px;
                height: 28px;
                font-size: 12px;
            }

            /* Penyesuaian bagian filter */
            .filter-section {
                padding: 14px 12px;
            }

            .filter-item {
                height: 42px;
            }

            .filter-item select {
                font-size: 15px;
            }

            .filter-icon {
                font-size: 15px;
                margin-right: 5px;
            }

            /* Penyesuaian Select2 untuk layar sangat kecil */
            .select2-container {
                height: 42px !important;
            }

            .select2-container--default .select2-selection--single {
                height: 42px !important;
            }

            .select2-container--default .select2-selection--single .select2-selection__rendered {
                font-size: 15px !important;
                line-height: 42px !important;
            }

            .select2-container--default .select2-selection--single .select2-selection__arrow {
                height: 42px !important;
            }

            /* Tombol hapus lebih kecil lagi */
            .select2-container--default .select2-selection--single .select2-selection__clear {
                width: 15px !important;
                height: 15px !important;
                margin-right: 5px !important;
            }

            /* Tombol "Kembali" lebih kompak untuk layar kecil */
            .show-all {
                min-width: 90px;
                padding: 6px 10px;
                font-size: 12px;
            }

            .show-all i {
                font-size: 11px;
            }

            /* Tombol reset lebih kompak untuk layar kecil */
            .reset-button {
                min-width: 90px;
                padding: 6px 10px;
                font-size: 12px;
            }

            .reset-button i {
                font-size: 11px;
            }

            /* Tampilan hasil lebih kompak */
            .results-count {
                padding: 8px 10px;
            }

            .search-summary {
                font-size: 13px;
            }

            .active-filters {
                font-size: 11px;
                padding: 1px 4px;
            }
        }

        /* Gaya desktop */
        @media screen and (min-width: 769px) {
            .mobile-link {
                display: none;
            }

            .desktop-photo,
            .desktop-name {
                display: inline;
            }

            .mobile-profile-btn {
                display: none;
            }

            .desktop-profile-btn {
                display: inline-block;
            }

            /* Tampilan dapil yang lebih baik di desktop */
            .dapil-info {
                width: 95%;
                margin-top: 7px;
                font-size: 12px;
            }
        }

        /* Animasi shake untuk input pencarian */
        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            10%,
            30%,
            50%,
            70%,
            90% {
                transform: translateX(-5px);
            }

            20%,
            40%,
            60%,
            80% {
                transform: translateX(5px);
            }
        }