/* ============================================ */
/* CBT PPPK FILTER - PREMIUM EDITION           */
/* Modern, Clean, Super Responsive             */
/* ============================================ */

/* ============================================ */
/* 1. CONTAINER UTAMA                          */
/* ============================================ */
.cbt-pppk-filter-container {
    margin: 24px 0 28px;
    padding-left: 2%;
    padding-right: 2%;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.cbt-filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid #e9edf4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.cbt-filter-inner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border-color: #d0d8e3;
}

/* ============================================ */
/* 2. LABEL FILTER                             */
/* ============================================ */
.cbt-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.cbt-filter-label .icon {
    font-size: 18px;
}

/* ============================================ */
/* 3. WRAPPER TOMBOL                           */
/* ============================================ */
.cbt-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
}

/* ============================================ */
/* 4. TOMBOL FILTER - DESAIN PREMIUM           */
/* ============================================ */
.cbt-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid transparent;
    background: #f1f4f9;
    color: #475569;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
    user-select: none;
    line-height: 1.2;
}

.cbt-filter-btn:hover {
    background: #e5e9f0;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cbt-filter-btn:active {
    transform: scale(0.95);
    transition-duration: 0.05s;
}

/* ============================================ */
/* 5. TOMBOL ACTIVE - BIRU ELEGAN              */
/* ============================================ */
.cbt-filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.cbt-filter-btn.active:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.cbt-filter-btn.active:active {
    transform: scale(0.95);
}

/* ============================================ */
/* 6. TOMBOL "SEMUA" - BEDA STYLE              */
/* ============================================ */
.cbt-filter-btn.btn-all {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.cbt-filter-btn.btn-all:hover {
    background: #e0e7ff;
    color: #4338ca;
}

.cbt-filter-btn.btn-all.active {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* ============================================ */
/* 7. RESPONSIVE - TABLET (≤ 1024px)           */
/* ============================================ */
@media screen and (max-width: 1024px) {
    .cbt-filter-inner {
        padding: 12px 16px;
        gap: 10px 16px;
        border-radius: 12px;
    }
    
    .cbt-filter-label {
        font-size: 13px;
    }
    
    .cbt-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 34px;
        border-radius: 28px;
    }
}

/* ============================================ */
/* 8. RESPONSIVE - TABLET KECIL (≤ 768px)      */
/* ============================================ */
@media screen and (max-width: 768px) {
    .cbt-pppk-filter-container {
        margin: 16px 0 20px;
    }
    
    .cbt-filter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .cbt-filter-label {
        font-size: 13px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .cbt-filter-buttons {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .cbt-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 32px;
        border-radius: 28px;
        flex: 0 1 auto;
    }
    
    .cbt-filter-btn:hover {
        transform: translateY(-1px);
    }
}

/* ============================================ */
/* 9. RESPONSIVE - SMARTPHONE (≤ 480px)        */
/* ============================================ */
@media screen and (max-width: 480px) {
    .cbt-pppk-filter-container {
        margin: 12px 0 16px;
    }
    
    .cbt-filter-inner {
        padding: 12px 14px;
        border-radius: 10px;
        gap: 8px;
        border-width: 1px;
    }
    
    .cbt-filter-label {
        font-size: 12px;
        font-weight: 700;
    }
    
    .cbt-filter-label .icon {
        font-size: 15px;
    }
    
    .cbt-filter-buttons {
        gap: 5px;
    }
    
    .cbt-filter-btn {
        padding: 5px 12px;
        font-size: 11px;
        min-height: 28px;
        border-radius: 24px;
        border-width: 2px;
        font-weight: 600;
    }
    
    .cbt-filter-btn.active {
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
    }
}

/* ============================================ */
/* 10. RESPONSIVE - HP KECIL (≤ 360px)         */
/* ============================================ */
@media screen and (max-width: 360px) {
    .cbt-filter-inner {
        padding: 10px 12px;
        border-radius: 8px;
        gap: 6px;
    }
    
    .cbt-filter-label {
        font-size: 11px;
    }
    
    .cbt-filter-btn {
        padding: 4px 10px;
        font-size: 10px;
        min-height: 24px;
        border-radius: 20px;
        border-width: 1.5px;
    }
}

/* ============================================ */
/* 11. DARK MODE SUPPORT                       */
/* ============================================ */
body.dark-mode .cbt-filter-inner {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .cbt-filter-label {
    color: #f1f5f9;
}

body.dark-mode .cbt-filter-btn {
    background: #2d3a4f;
    color: #94a3b8;
    border-color: transparent;
}

body.dark-mode .cbt-filter-btn:hover {
    background: #3a4a63;
    color: #f1f5f9;
}

body.dark-mode .cbt-filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #2563eb;
}

body.dark-mode .cbt-filter-btn.active:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

body.dark-mode .cbt-filter-btn.btn-all {
    background: #312e81;
    color: #a5b4fc;
    border-color: #4338ca;
}

body.dark-mode .cbt-filter-btn.btn-all:hover {
    background: #4338ca;
    color: #ffffff;
}

body.dark-mode .cbt-filter-btn.btn-all.active {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
}