.card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #97805d 0%, #40ac76 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1rem 1.5rem;
}

.select2-container--default .select2-selection--single {
    height: 35px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 33px;
    padding-left: 15px;
}

.btn-filter {
    background: linear-gradient(135deg, #4ea769 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 25px;
    color: white;
    font-weight: 500;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-filter:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.table thead th {
    background: linear-gradient(135deg, #4ea769 0%, #097768 100%);
    color: white;
    border: none;
    /* font-weight: 500; */
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    color: #667eea;
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Chart container styling untuk mobile responsiveness */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 15px;
}

#kasusChart,
#kecamatanChart,
#prosesChart {
    width: 100% !important;
    height: auto !important;
    min-height: 400px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        min-height: 250px;
        padding: 10px;
    }

    #kasusChart,
    #kecamatanChart,
    #prosesChart {
        min-height: 250px;
    }

    .card-header h4 {
        font-size: 1.1rem;
    }

    .card-header h5 {
        font-size: 1rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .btn-filter {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .chart-container {
        min-height: 200px;
        padding: 5px;
    }

    #kasusChart,
    #kecamatanChart,
    #prosesChart {
        min-height: 200px;
    }

    .container-fluid {
        padding: 10px;
    }

    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Pastikan card chart dan tabel sama tinggi */
#results-section .card.h-100 {
    height: 100%;
}

/* Chart container agar fleksibel dan memenuhi tinggi card */
.chart-container {
    min-height: 400px;
    height: 100%;
}

/* Tab styling */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    border-bottom: 3px solid #0d6efd;
}

.fs-7{
    font-size: 1rem;
}
