/* --- 1. RESET & BACKGROUND LAYAR --- */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        background-color: #525659; /* Warna abu-abu gelap ala PDF Viewer */
        font-family: Arial, Helvetica, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 30px; /* Jarak antar kertas */
      }

      /* --- 2. NAVBAR (MODIFIKASI AGAR SEJAJAR KERTAS) --- */
      .navbar {
        width: 100%; /* Latar belakang tetap penuh layar */
        height: 70px;
        background-color: #0056b3; /* Biru Tua */
        display: flex;
        justify-content: center; /* Trik agar isi navbar ada di tengah */
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      }

      /* Container Dalam Navbar (Selebar Kertas) */
      .navbar-inner {
        width: 210mm; /* MENYESUAIKAN UKURAN KERTAS */
        max-width: 100%; /* Agar aman di HP */
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px; /* Sedikit jarak agar tidak terlalu mepet pinggir */
      }

      /* Bagian Logo */
      .nav-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; color: white; }
      .nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
      .brand-title { font-size: 18px; font-weight: bold; letter-spacing: 1px; }
      .brand-subtitle { font-size: 11px; opacity: 0.8; font-weight: normal; }

      /* Bagian Menu */
      .nav-menu { display: flex; list-style: none; gap: 10px; }
      .nav-menu a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        padding: 8px 15px;
        border-radius: 20px;
        transition: 0.3s;
      }
      .nav-menu a:hover, .nav-menu a.active {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        font-weight: bold;
      }

      /* --- 3. KERTAS A4 (CONTAINER) --- */
      .paper-container {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 30px; /* Jarak antar halaman */
      }

      .paper {
        width: 210mm;
        min-height: 297mm;
        background-color: white;
        padding: 20mm 25mm; /* Margin standar dinas */
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        color: #000;
      }

      /* --- 4. STYLE SURAT (KOP, DLL) --- */
      .header {
        display: flex;
        align-items: center;
        border-bottom: 3px solid black;
        padding-bottom: 10px;
        margin-bottom: 25px;
      }
      .logo-container { width: 100px; text-align: center; }
      .logo-surat { width: 90px; height: auto; }
      .header-text { flex: 1; text-align: center; line-height: 1.2; }
      .header-text h2 { font-size: 16px; font-weight: bold; margin: 0; }
      .header-text h3 { font-size: 15px; font-weight: bold; margin: 0; }
      .header-text p { font-size: 11px; margin: 0; }

      .content-title { text-align: center; margin-bottom: 30px; font-weight: bold; }
      .content-body { font-size: 14px; text-align: justify; line-height: 1.6; }
      .content-body p { margin-bottom: 15px; text-indent: 40px; }

      /* Tabel Data */
      .data-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px; }
      .data-table th, .data-table td { border: 1px solid black; padding: 6px 8px; vertical-align: middle; }
      .data-table th { background-color: #f0f0f0; text-align: center; font-weight: bold; }

      /* Tanda Tangan */
      .signature-section { display: flex; justify-content: flex-end; margin-top: 40px; }
      .signature-box { width: 300px; text-align: left; font-size: 14px; }
      .qr-img { width: 90px; height: auto; margin: 10px 0; }

      /* Footer */
      .footer-slogan {
        margin-top: 50px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 10px; display: flex; align-items: center;
      }

      /* Responsif untuk HP */
      @media (max-width: 768px) {
        .navbar { padding: 0 15px; height: 60px; }
        .nav-menu { display: none; } /* Sembunyikan menu di HP agar rapi */
        .brand-subtitle, .user-info { display: none; }
        .paper { width: 100%; padding: 15px; min-height: auto; }
      }

      @media print {
        body { background: none; padding: 0; }
        .navbar { display: none; } /* Navbar hilang saat diprint */
        .paper { box-shadow: none; margin: 0; width: 100%; page-break-after: always; }
      }