<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Biodata</title>
  <style>
    body {
      font-family: monospace, Courier, sans-serif;
      padding: 20px;
      background-color: #ffffff;
    }

    /* Container utama menggunakan Flexbox menyamping */
    .biodata-container {
      display: flex;
      gap: 30px;
      align-items: flex-start;
    }

    /* Kotak Foto Sebelah Kiri */
    .foto-box {
      width: 150px;
      height: 160px;
      border: 1px solid #dcdcdc;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 0 2px rgba(0,0,0,0.05);
    }

    /* Kotak Informasi Biodata Sebelah Kanan */
    .info-box {
      flex: 1;
      max-width: 500px;
      background-color: #f8f8f8;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 20px 30px;
      box-shadow: 0 0 2px rgba(0,0,0,0.05);
    }

    .title {
      text-align: center;
      font-size: 15px;
      margin-bottom: 25px;
    }

    .details {
      font-size: 14px;
      line-height: 1.8;
    }

    .details table {
      border-collapse: collapse;
      margin: 0 auto;
    }

    .details td {
      padding: 2px 5px;
      vertical-align: top;
    }

    .dots {
      text-align: center;
      margin-top: 5px;
    }
  </style>
</head>
<body>

<?php
  // Deklarasi Variabel Biodata
  $npm   = "202343501561";
  $nama  = "Adi Sarsono Sihotang";
  $kelas = "Y6K";
  $ttl   = "Hutapinang, 7 Januari 1999";
  $hobi  = "Olahraga, Jalan-jalan";
  $cita  = "PNS Coyyy!"
?>

<div class="biodata-container">
  <!-- Kotak Foto (Kiri) -->
  <div class="foto-box">
        <img src="foto-diri.jpeg" alt="Foto Profil" style="width: 100%; height: 100%; object-fit: cover; border-radius: 4px;">
    </div>

  <!-- Kotak Detail Biodata (Kanan) -->
  <div class="info-box">
    <div class="title">Biodata</div>
    
    <div class="details">
      <table>
        <tr>
          <td>NPM</td>
          <td>:</td>
          <td><?php echo $npm; ?></td>
        </tr>
        <tr>
          <td>NAMA</td>
          <td>:</td>
          <td><?php echo $nama; ?></td>
        </tr>
        <tr>
          <td>KELAS</td>
          <td>:</td>
          <td><?php echo $kelas; ?></td>
        </tr>
        <tr>
          <td>TTL</td>
          <td>:</td>
          <td><?php echo $ttl; ?></td>
        </tr>
        <tr>
          <td>Hobi</td>
          <td>:</td>
          <td><?php echo $hobi; ?></td>
        </tr>
        <tr>
          <td>Cita-cita</td>
          <td>:</td>
          <td><?php echo $cita; ?></td>
        </tr>
      </table>

    </div>
  </div>
</div>

</body>
</html>