.pengaturan-container {
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 33px;
}

.pengaturan-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
}

/* Grid Layout Mobile First (1 Kolom) */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Card Base Style */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Overlay Latar Belakang (Gelap Transparan) */
.modal-overlay {
    position: absolute; /* Berubah dari fixed ke absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Saat Modal Aktif/Muncul */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Kotak Konten Modal */
.modal-content {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tombol Silang (Close) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

/* Responsif untuk Tablet ke Atas (Lebar Screen >= 600px) */
@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Responsif untuk Desktop (Lebar Screen >= 992px) */
@media (min-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}