/* Gradasi setengah warna: kiri biru tua, kanan biru muda, transisi halus di tengah */
.main-bg {
    background: linear-gradient(90deg, #001564 0%, #001564 45%, #5378D6 55%, #5378D6 100%);
}

/* Layer bawah dengan efek radial lembut */
.radial-layer {
    background: radial-gradient(40% 60% at 70% 85%, #6FCDC9 0%, #065869 100%);
    opacity: 0.9;
    clip-path: ellipse(40% 100% at 80% 80%);
}

.kab-card {
    background: linear-gradient(135deg, #55B0B1, #3D5EB8);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 999;
}

.kab-card:hover {
    background: linear-gradient(135deg, #55B0B1, #3D5EB8);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.kab-card:active {
    border: white 1px solid;
}

.kab-card img {
    width: 64px;
    /* sama seperti w-16 di Tailwind */
    height: 40px;
    /* sama seperti h-10 */
    object-fit: contain;
}

.toggle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: sans-serif;
}

.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle input {
    display: none;
}

.slider {
    position: relative;
    width: 46px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Saat toggle aktif */
.toggle input:checked+.slider {
    background-color: #142A70;
}

.toggle input:checked+.slider::before {
    transform: translateX(22px);
}

.subcategory-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    width: 700px;
    /* sebelumnya 550px */
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.subcategory-title {
    font-size: 13px;
    text-transform: uppercase;
    color: #777;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    /* agar tombol X bisa diatur absolut di dalamnya */
    padding-right: 2rem;
    /* beri ruang agar teks tidak menabrak tombol */
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #e11d48;
    /* merah lembut saat hover */
    transform: scale(1.1);
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.subcategory-item span {
    margin-right: 1rem;
}

.subcategory-item span b {
    color: #000;
}

/* Scrollbar halus */
.subcategory-container::-webkit-scrollbar {
    width: 6px;
}

.subcategory-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.kab-card.active-card {
    border: 3px solid white;
}