/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Judul utama */
.main {
    text-align: center;
    margin-bottom: 30px;
}

.mainjudul {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.mainsub {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Bagian data pendaftar */
.data-pendaftar {
    margin-bottom: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    overflow-x: auto;
}

.data-pendaftar .header {
    border-bottom: 2px solid #006400;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.data-pendaftar .header h3 {
    color: #006400;
    font-size: 20px;
}

.header .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h3 {
    margin: 0;
}

.header .total-blink {
    font-weight: 600;
    font-size: 1rem;
}

/* Table Style */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background-color: #006400;
    color: #fff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* Tombol kembali */
.back-link {
    margin-top: 30px;
    text-align: center;
}

.back-link a {
    text-decoration: none;
    color: #006400;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #145A32;
}

.back-link i {
    margin: 0 5px;
    vertical-align: middle;
}

/* Baris yang Lulus */
tr.lulus {
    background-color: #d4edda !important;
    color: #155724;
    font-weight: normal;
}

/* Baris yang Tidak Lulus */
tr.tidak-lulus {
    background-color: #f8d7da !important;  /* Merah muda */
    color: #721c24;
    font-weight: bold;
}

.total-blink {
    color: #ff4d4d;
    font-weight: bold;
    margin-left: 15px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .mainjudul {
        font-size: 20px;
    }

    .mainsub {
        font-size: 16px;
    }

    .data-pendaftar .header h3 {
        font-size: 18px;
    }

    th, td {
        font-size: 14px;
    }
}

.chart-container {
    background: #fff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.chart-title {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.chart-container canvas {
    width: 100% !important;
    height: 300px !important;
}

.chart-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    font-weight: 500;
}

.chart-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-box {
    min-width: 200px;
    padding: 20px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f6f9ff, #ffffff);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.info-box .label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #555;
}

.info-box .value {
    display: block;
    font-size: 44px;
    font-weight: 700;
    margin: 6px 0;
}

.info-box .unit {
    font-size: 14px;
    color: #777;
}

/* Warna aksen per jenjang */
.info-box.mts .value {
    color: #1976d2;
}

.info-box.ma .value {
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 480px) {
    .info-box {
        min-width: 100%;
    }
}

.chart-info {
    margin-bottom: 40px; /* JARAK KE TABEL */
}

.data-pendaftar {
    margin-top: 30px;
}

