/* style.css (REVISED FOR MATRIX VIEW) */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset dan Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0056b3;
}

/* Bagian 1: Identitas Mahasiswa (Tidak Berubah) */
.identitas-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.identitas-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
}

.identitas-card .info p {
    margin: 5px 0;
    font-size: 1.1rem;
}

.identitas-card .info p strong {
    display: inline-block;
    width: 150px;
}

/* Bagian 2: Tabel Data Rating (Matrix Style) */
.table-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.data-table-wrapper {
    overflow-x: auto; /* Sangat penting untuk tabel lebar */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid #ccc;
}

/* Styling untuk semua sel header dan data */
.data-table th, .data-table td {
    padding: 10px 12px;
    border: 1px solid #ccc;
    text-align: center; /* Default perataan tengah untuk angka */
    min-width: 100px; /* Lebar minimum untuk setiap kolom film */
}

/* Header tabel */
.data-table th {
    background-color: #e9ecef;
    font-weight: 600;
}

/* Styling khusus untuk kolom pertama (User ID) */
.data-table th:first-child, .data-table td:first-child {
    text-align: left; /* Rata kiri untuk User ID */
    font-weight: bold;
    background-color: #f8f9fa;
    min-width: 80px;
}


/* Bagian 3: Hasil dan Penjelasan Prediksi (Tidak Berubah) */
.prediction-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.prediction-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 91, 179, 0.4);
    text-align: center;
    flex: 1;
    max-width: 350px;
}

.prediction-card h3 {
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
}

.prediction-value {
    font-size: 4rem;
    font-weight: 700;
    margin: 15px 0;
}

.prediction-card p {
    font-size: 1.1rem;
}

.explanation-block {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 2;
}

.explanation-block h3 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.explanation-block ul {
    list-style-type: none;
    padding-left: 0;
}

.explanation-block li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.explanation-block li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Responsivitas */
@media (max-width: 992px) {
    .prediction-section {
        flex-direction: column;
    }
    .prediction-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .identitas-card {
        flex-direction: column;
        text-align: center;
    }
}