.judul h1{
    font-weight: bold;
    font-family: 'system-ui';
    font-size: 40px;
    text-align: center;
    padding-top: 20px;
}
.judul .alamat{
    padding-top: 10px;
    justify-content: center;
    text-align: center;
    display: flex;
    font-family: 'system-ui';
}

.alamat h4{
    font-weight: bold;
}

.alamat .ala1{
    width: 400px;
}

.alamat .ala2{
    width: 400px;
}

/* =========================
   CONTAINER UTAMA
========================= */
.main-card{
    background: linear-gradient(145deg, #ffffff, #f7faff);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e8eef7;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    animation: fadeIn 0.8s ease;
}

/* =========================
   CARD JORONG
========================= */
.layanan-card{
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    height: 100%;
    border: 1px solid #edf1f7;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.layanan-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,#1e3c72,#2a5298,#38ef7d);
}

.layanan-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* =========================
   HEADER CARD
========================= */
.layanan-icon{
    width: 65px;
    height: 65px;
    object-fit: contain;
    background: linear-gradient(145deg,#f4f8ff,#ffffff);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e4ebf5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.layanan-card h4{
    font-size: 22px;
    color: #1d3557;
    line-height: 1.4;
    margin-bottom: 0;
}

/* =========================
   TABLE
========================= */
.table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: fixed;
}

.table-header th{
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    color: white;
    border: none;
    padding: 14px 10px;
    font-size: 15px;
    text-align: center;
    word-break: break-word;
}

.table thead th:first-child,
.table tbody td:first-child{
    width: 70%;
}

.table-header th:first-child{
    border-radius: 12px 0 0 12px;
}

.table-header th:last-child{
    border-radius: 0 12px 12px 0;
}

.table tbody tr{
    background: #f9fbff;
    transition: 0.2s;
}

.table tbody tr:hover{
    background: #eef5ff;
}

.table tbody td{
    padding: 14px 10px;
    border-top: none !important;
    vertical-align: middle;
    font-size: 15px;
    color: #444;
    word-break: break-word;
}

.table tbody td:first-child{
    border-radius: 12px 0 0 12px;
}

.table tbody td:last-child{
    border-radius: 0 12px 12px 0;
    font-weight: 700;
    color: #1e3c72;
}

/* =========================
   ICON TABLE
========================= */
.table tbody i{
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px){

    .layanan-card{
        padding: 20px;
    }

    .layanan-card h4{
        font-size: 20px;
    }

    .table-header th{
        font-size: 14px;
        padding: 12px 8px;
    }

    .table tbody td{
        font-size: 14px;
        padding: 12px 8px;
    }

    .table tbody i{
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px){

    .main-card{
        border-radius: 20px;
    }

    .layanan-card{
        padding: 14px;
        border-radius: 18px;
    }

    .layanan-icon{
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .layanan-card h4{
        font-size: 16px;
        line-height: 1.3;
    }

    .table-responsive{
        overflow-x: hidden !important;
    }

    .table{
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed;
        border-spacing: 0 8px;
    }

    .table-header th{
        font-size: 11px;
        padding: 10px 5px;
    }

    .table tbody td{
        font-size: 11px;
        padding: 10px 5px;
    }

    .table tbody td b{
        font-size: 11px;
    }

    .table tbody i{
        width: 22px;
        height: 22px;
        font-size: 9px;
        border-radius: 6px;
    }

    .table tbody .d-flex{
        gap: 5px !important;
        align-items: center !important;
    }
}

/* =========================
   EXTRA SMALL MOBILE
========================= */
@media (max-width: 576px){

    .layanan-card{
        padding: 12px;
    }

    .d-flex.align-items-center.mb-4{
        gap: 10px;
    }

    .layanan-card h4{
        font-size: 14px;
    }

    .table-header th{
        font-size: 9px;
        padding: 8px 3px;
    }

    .table tbody td{
        font-size: 9px;
        padding: 8px 3px;
    }

    .table tbody td b{
        font-size: 9px;
    }

    .table tbody i{
        width: 18px;
        height: 18px;
        font-size: 7px;
    }

    .table thead th:first-child,
    .table tbody td:first-child{
        width: 72%;
    }
}

/* =========================
   CARD UTAMA
========================= */
.dashboard-chart-card{
    border-radius: 25px;
    overflow: hidden;
    background: #ffffff;
}

/* =========================
   BOX GRAFIK
========================= */
.chart-box{
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border-radius: 22px;
    padding: 25px;
    border: 1px solid #e9eef5;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.chart-box:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* =========================
   TITLE
========================= */
.chart-title{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-box{
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================
   WRAPPER CHART
========================= */
.chart-wrapper{
    position: relative;
    width: 100%;
    height: 420px;
}

.pie-wrapper{
    position: relative;
    width: 100%;
    height: 420px;
}

/* =========================
   RESPONSIVE CHART
========================= */

/* TABLET */
@media (max-width: 992px){

    .chart-box{
        padding: 20px;
    }

    .chart-wrapper{
        height: 350px; /* grafik batang lebih tinggi */
    }

    .pie-wrapper{
        height: 350px;
    }
}

/* MOBILE */
@media (max-width: 768px){

    .dashboard-chart-card .card-body{
        padding: 18px;
    }

    .chart-box{
        padding: 18px;
        border-radius: 18px;
    }

    .chart-wrapper{
        height: 350px; /* tinggi grafik batang */
    }
    
    .pie-wrapper{
        height: 320px;
    }

    .chart-title{
        gap: 12px;
    }

    .chart-title h5{
        font-size: 18px;
    }

    .chart-title small{
        font-size: 12px;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 576px){

    .dashboard-chart-card .card-body{
        padding: 15px;
    }

    .chart-box{
        padding: 15px;
    }

    .chart-wrapper{
        height: 250px; /* lebih tinggi agar label tidak bertumpuk */
    }
    
    .pie-wrapper{
        height: 280px;
    }

    .chart-title{
        flex-direction: column;
        text-align: center;
    }

    .chart-title h5{
        font-size: 16px;
    }

    .icon-box{
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
        