/* Tabel Umum */
table {
    width: 100%; /* Gunakan seluruh lebar layar */
    max-width: 85%; /* Hindari tabel meluas lebih besar dari layar */
    margin: 10px auto;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Header Kolom */
th {
    text-transform: uppercase;
    color: #fff;
}

/* Lebar Kolom */
td:first-child {
    width: 30%; /* Kolom 'Kategori' */
}

td:last-child {
    width: 70%; /* Kolom 'Hasil', lebih lebar */
}

/* Judul Tabel */
h3 {
    text-align: center;
    font-size: 1.2em;
    margin: 10px auto;
    padding: 10px;
    border-radius: 5px;
    width: 84%;
    line-height: 1.5;
}

/* Tabel Prediksi SDY */
#prediksiSDY h3 {
    background-color: #007bff; /* Blue */
    color: #ffffff; /* White text for high contrast */
}

#prediksiSDY table {
    background-color: #e3f2fd; /* Light Blue */
}

#prediksiSDY th {
    background-color: #0056b3; /* Darker Blue */
}

/* Tabel Prediksi SGP */
#prediksiSGP h3 {
    background-color: #28a745; /* Green */
    color: #ffffff; /* White text for high contrast */
}

#prediksiSGP table {
    background-color: #d4edda; /* Light Green */
}

#prediksiSGP th {
    background-color: #1e7e34; /* Darker Green */
}

/* Tabel Prediksi HK */
#prediksiHK h3 {
    background-color: #dc3545; /* Red */
    color: #ffffff; /* White text for high contrast */
}

#prediksiHK table {
    background-color: #f8d7da; /* Light Red */
}

#prediksiHK th {
    background-color: #bd2130; /* Darker Red */
}

/* Variasi Warna Row */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Responsif untuk Perangkat Seluler */
@media (max-width: 600px) {
    table {
        font-size: 0.9em; /* Kurangi ukuran font */
    }
    th, td {
        padding: 8px; /* Kurangi padding */
    }
    h3 {
        font-size: 1em; /* Kurangi ukuran font judul */
        padding: 8px;
    }
}
