/* --- 1. RESET & BACKGROUND --- */
      * { margin: 0; padding: 0; box-sizing: border-box; }

      body {
        background-color: #525659; /* Abu-abu gelap ala PDF Viewer */
        font-family: Arial, Helvetica, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 50px;
        min-height: 100vh;
      }

      /* --- 2. NAVBAR (SAMA PERSIS) --- */
      .navbar {
        width: 100%;
        height: 70px;
        background-color: #0056b3; /* Biru Tua */
        display: flex;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      }

      .navbar-inner {
        width: 210mm; /* Sesuai lebar kertas */
        max-width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
      }

      .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; }

      .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;
      }

      .nav-user {
        display: flex; align-items: center; gap: 10px;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 5px 15px 5px 5px;
        border-radius: 30px;
        cursor: pointer;
      }
      .user-avatar {
        width: 35px; height: 35px; background-color: #fff;
        border-radius: 50%; display: flex; justify-content: center; align-items: center;
        color: #1a3e5c; font-weight: bold; border: 2px solid #ccc;
      }
      .user-info { display: flex; flex-direction: column; text-align: right; }
      .user-name { font-size: 12px; font-weight: bold; color: white; }
      .user-role { font-size: 10px; color: #ccc; }

      /* --- 3. KERTAS SURAT --- */
      .paper-container {
        margin-top: 30px;
        width: 100%;
        display: flex;
        justify-content: center;
      }

      .paper {
        width: 210mm;
        min-height: 297mm;
        background-color: white;
        padding: 15mm 25mm 25mm 25mm; /* Margin atas sedikit lebih kecil untuk kop */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        color: #000;
        font-size: 12pt; /* Ukuran font standar surat dinas */
        line-height: 1.5;
        position: relative;
      }

      /* --- 4. FORMAT SURAT (HEADER & ISI) --- */
      
      /* Kop Surat */
      .header {
        display: flex;
        align-items: flex-start;
        border-bottom: 3px solid black;
        padding-bottom: 15px;
        margin-bottom: 20px;
      }
      .logo-container { width: 110px; text-align: center; padding-top: 5px; }
      .logo-surat { width: 90px; height: auto; }
      .header-text { flex: 1; text-align: center; line-height: 1.3; margin-top: 5px;}
      .header-text h2 { font-size: 14pt; font-weight: bold; margin: 0; text-transform: uppercase; }
      .header-text h3 { font-size: 13pt; font-weight: bold; margin: 0; text-transform: uppercase; }
      .header-text p { font-size: 9pt; margin: 0; }

      /* Judul Pengumuman */
      .judul-surat {
        text-align: center;
        margin-bottom: 25px;
      }
      .judul-main { font-weight: bold; text-decoration: underline; font-size: 12pt; margin-bottom: 2px; }
      .nomor-surat { font-weight: bold; font-size: 12pt; margin-bottom: 0; }
      .nomor-nip { font-weight: bold; font-size: 12pt; margin-bottom: 15px; }
      .judul-perihal { font-weight: bold; text-decoration: underline; text-transform: uppercase; font-size: 12pt; line-height: 1.4; }

      /* Isi Surat */
      .content-body {
        text-align: justify;
        font-size: 12pt;
        line-height: 1.5;
      }
      .indent { text-indent: 50px; } /* Indentasi awal paragraf */

      /* Biodata Box */
      .biodata-box {
        margin: 20px 0 20px 30px; /* Margin kiri agar menjorok */
      }
      .biodata-table {
        width: 100%;
        border-collapse: collapse;
        font-weight: bold;
      }
      .biodata-table td {
        padding: 2px 0;
        vertical-align: top;
      }
      .col-label { width: 120px; }
      .col-sep { width: 20px; text-align: center; }

      /* Tanda Tangan */
      .signature-area {
        margin-top: 40px;
        display: flex;
        justify-content: flex-end;
      }
      .sign-box {
        width: 300px;
        text-align: left;
        font-size: 12pt;
      }
      .qr-img {
        width: 80px; 
        height: 80px; 
        margin: 10px 0;
        border: 1px solid #eee; /* Placeholder border */
      }
      .electronic-sign { font-size: 9pt; color: #777; margin-bottom: 5px; }

      /* Tembusan */
      .tembusan {
        margin-top: 50px;
        font-size: 11pt;
      }
      .tembusan ul {
        list-style: none;
        padding-left: 0;
      }

      /* Responsif & Print */
      @media (max-width: 800px) {
        .navbar-inner { width: 100%; padding: 0 15px; }
        .paper { width: 100%; padding: 15px; height: auto; }
        .nav-menu, .brand-subtitle, .user-info { display: none; }
      }

      @media print {
        .navbar { display: none; }
        body { background: none; }
        .paper { box-shadow: none; margin: 0; width: 100%; page-break-after: always; }
      }