body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 40px;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h2, h3 {
    text-align: center;
    color: #2c3e50;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
}

table thead {
    background: #14A2BA;
    color: white;
}

table th, table td {
    padding: 25px 25px;
    border: 1px solid #ccc;
    text-align: center;
    height: 30px;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
/*
table tbody tr:hover {
    background-color: #e6f7ff;
}
*/
.nilai-cell {
    cursor: pointer;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nilai-cell:hover {
    background-color: #e0f7fa;
    color: #000;
}
.toggle-header {
    background-color: #E7F6F9;
    color: #125D72;
    padding: 10px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.toggle-header:hover {
    background-color: gold;
}

.toggle-table {
    margin-top: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom tetap */
    gap: 20px;
    margin: 30px 0;
}

.info-box {
    background: #f8fbff;
    border: 1px solid #cce;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.info-box h4 {
    margin: 6px 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.info-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.2;
}

.info-box th,
.info-box td {
    border: 1px solid #ccc;
    padding: 3px;
    text-align: right;
}

.info-box th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-align: center;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #1f3a60;
    text-align: left;
    border-bottom: 2px solid #cce5ff;
    padding-bottom: 10px;
}


    #spiderChart {
        width: 100%;
        max-height: 400px;
        height: 400px;
    }

/* Overall Score Level WITH STAR */
.star-container {
    display: flex;
    justify-content: center;   /* Horizontal center */
    align-items: center;       /* Vertical center */
    height: 100%;              /* Atur sesuai tinggi kontainer */
    width: 100%;
}

.stars {
    display: flex;
    align-items: center;
}

.star-wrapper {
    position: relative;
    margin-right: 4px;
    width: var(--star-size, 60px);   /* Ukuran default 40px jika tidak ditentukan */
    height: var(--star-size, 60px);
}

.star-empty,
.star-filled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star-empty svg,
.star-filled svg {
    width: 100%;
    height: 100%;
}

.star-empty svg {
    fill: #ccc;    /* Warna abu-abu untuk bintang kosong */
}

.star-filled svg {
    fill: #1CA350;    /* Warna emas untuk bintang terisi */
}

.star-filled {
    clip-path: inset(0 0 0 0); /* Ini akan diatur inline berdasarkan $fill di PHP */
    pointer-events: none;      /* Mencegah interaksi mouse */
}

.priority-table td, 
.priority-table th {
    padding: 3px 3px; /* atas-bawah 6px, kiri-kanan 10px */
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.1;
}

.btn-back {
    position: absolute;
    left: 10px;
    background-color: red;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-back:hover {
    background-color: #1CA350;
    color: white;
}
    
.title-container h2 {
    font-size: 30px;
    color: #125D72;
    text-align: center;
    margin: 0;
}

.title-container h3 {
    font-size: 25px;
    color: #1CA350;
    text-align: center;
    margin-top: 1px;
}

.header-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 2px solid #cce0f5;
    padding-bottom: 10px;
}


/*  WEBOMETRIC  */
.webo-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 30px auto;
    align-items: start;
}

.webo-chart-box {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.webo-table-box {
    background-color: #fffdf7;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.webo-table-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.webo-table-box th,
.webo-table-box td {
    border: 1px solid #aaa;
    padding: 8px;
    text-align: center;
}

.webo-table-box thead {
    background-color: #f0f0f0;
    font-weight: bold;
}
