/* ======================================================
   🌿 GLOBAL STYLE
   ====================================================== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #ffffff; /* Latar belakang utama putih */
}

html {
  scroll-behavior: smooth; /* Animasi scroll halus */
}

/* Scroll offset agar anchor link (#id) tidak ketutup header */
:target {
  scroll-margin-top: 100px; /* Sesuaikan tinggi header */
}

/* ======================================================
   🧭 HEADER & NAVIGATION FIXED
   ====================================================== */
header {
  position: fixed;          /* Header selalu di atas */
  top: 0;
  left: 0;
  z-index: 9999;            /* Pastikan di atas semua elemen */
  background-color: #007f3d;
  width: 100%;
  color: white;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Efek bayangan lembut */
}

/* Memberi jarak agar konten tidak tertutup header */
body {
  padding-top: 130px; /* Sesuaikan dengan tinggi header + nav */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;

}

.logo {
  height: 70px;
  margin-right: 15px;
}

header h1 {
  font-size: 24px;
  margin: 0;
  text-align: center;
  color: white;
}
header h1 span {
  font-size: 20px;
}

/* ======================================================
   🔗 NAVIGATION MENU
   ====================================================== */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: #2e8b57;
  padding: 10px 0;
  margin: 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Tombol Login, Logout, dan Register */
.btn-login, .btn-register, .btn-logout {
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.btn-login, .btn-logout {
  background-color: #ffd43b;
  color: black;
}

.btn-register {
  background-color: #333;
  color: white;
}

/* Gaya teks isi panduan */
.isi-panduan {
  text-align: left;
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

/* ======================================================
   📄 PROFIL SECTION (TEKS & VIDEO)
   ====================================================== */
/* ======================================================
   📄 PROFIL SECTION (TEKS & VIDEO)
   ====================================================== */
.profil-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 180px 80px 100px;
  background-color: #ffffff;
}

/* Teks profil tetap dalam card */
.profil-text {
  flex: 1.1;
  background-color: #f8fff9;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ======= VIDEO PROFIL TANPA FRAME ======= */
.profil-video {
  flex: 1;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profil-video h3 {
  color: #2e8b57;
  margin-bottom: 15px;
  text-align: center;
}

/* Buat video penuh area dan crop bagian hitam */
.profil-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  object-fit: cover;
  flex-grow: 1;
}

/* Responsif */
@media (max-width: 900px) {
  .profil-wrapper {
    flex-direction: column;
    padding: 120px 30px 60px;
  }

  .profil-video iframe {
    width: 100%;
    height: 300px;
  }
}


/* Tombol edit konten profil */
.btn-edit {
  display: inline-block;
  margin-top: 20px;
  background: #2e8b57;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-edit:hover {
  background: #3cb043;
}

/* Video responsif */
.profil-video iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  margin-top: 10px;
  flex-grow: 1;
}

/* Responsif untuk layar kecil */
@media (max-width: 900px) {
  .profil-wrapper {
    flex-direction: column;
    padding: 120px 30px 60px;
  }

  .profil-text, .profil-video {
    width: 100%;
  }

  .profil-video iframe {
    height: 300px;
  }
}

/* ======================================================
   📘 PANDUAN & TARIF WRAPPER
   ====================================================== */
.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 60px;
}

/* Kartu panduan */
.section#panduan {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Kartu tarif */
.tarif-section {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0);
}

/* Responsif: jadi tumpuk atas–bawah */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    padding: 20px;
  }
}

/* ======================================================
   📊 TARIF SECTION (TABEL)
   ====================================================== */
.tarif-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background-color: rgba(0, 0, 0, 0);
}

/* Container tabel */
.tarif-container {
  width: 90%;
  max-width: 900px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 40px;
}

.tarif-container h2 {
  text-align: center;
  color: #2e8b57;
  font-size: 22px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

/* Wrapper scroll untuk tabel */
.tarif-table-wrapper {
  display: block;
  max-height: 400px; /* tinggi maksimum */
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* Header tabel tetap di atas */
.tarif-table thead th {
  position: sticky;
  top: 0;
  background-color: #dff5e0;
  z-index: 10;
}

/* Gaya dasar tabel */
.tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: center;
}

.tarif-table th {
  background-color: #dff5e0;
  color: #1f5e3e;
  padding: 12px;
  border: 1px solid #ccc;
}

.tarif-table td {
  padding: 10px;
  border: 1px solid #ccc;
}

.tarif-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tarif-table tr:hover {
  background-color: #e9fbe9;
  transition: 0.3s;
}

/* Scrollbar custom */
.tarif-table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tarif-table-wrapper::-webkit-scrollbar-thumb {
  background-color: #3cb043;
  border-radius: 8px;
}

.tarif-table-wrapper::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* ======================================================
   📥 DOWNLOAD FORMULIR SECTION
   ====================================================== */
.download-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9fdf9;
}

.title-banner {
  display: inline-block;
  background: linear-gradient(to right, #88d840, #7cd11d);
  padding: 10px 50px;
  border-radius: 10px;
  color: #222;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Container daftar file */
.download-container {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 800px;
  margin: 30px auto;
  padding: 40px 30px;
}

.download-container h3 {
  font-size: 30px;
  color: #333;
  margin-bottom: 25px;
  text-transform: capitalize;
}

/* Daftar file download */
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.download-list li {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 16px;
}

.download-list i {
  font-size: 22px;
  color: #1f5e3e;
  margin-right: 12px;
}

.download-list a {
  font-size: 27px;
  color: darkred;
  text-decoration: none;
  transition: 0.3s;
}

.download-list a:hover {
  color: #2e8b57;
  text-decoration: underline;
}

/* ======================================================
   📘 PANDUAN / SOP SECTION
   ====================================================== */
.section {
  text-align: center;
  margin-top: 50px;
}

.section-title {
  background: linear-gradient(90deg, #77d100, #4caf00);
  color: #000;
  font-size: 2.2em;
  padding: 15px 50px;
  border-radius: 10px;
  display: inline-block;
  font-weight: bold;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
}

/* File panduan */
.file-list {
  margin-top: 30px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 1.2em;
}

.file-item i {
  color: #212121;
  font-size: 1.4em;
}

.file-item a {
  color: #111;
  text-decoration: none;
}

.file-item a:hover {
  text-decoration: underline;
}

/* ======================================================
   ✏️ EDIT FORM STYLE
   ====================================================== */
.edit-container {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.edit-container h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 20px;
}

.edit-form label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.edit-form input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

/* Area editor teks */
#editor {
  border: 1px solid #ccc;
  min-height: 300px;
  border-radius: 6px;
  background: #fafafa;
  padding: 10px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Tombol simpan dan batal */
.btn-save, .btn-cancel {
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  text-decoration: none;
}

.btn-save { background: #004080; }
.btn-save:hover { background: #0066cc; }

.btn-cancel { background: #999; }
.btn-cancel:hover { background: #777; }

/* ======================================================
   ⚓ FOOTER FIXED
   ====================================================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #007f3d;
  color: white;
  text-align: center;
  line-height: 50px; /* Biar teks vertikal di tengah */
  font-weight: bold;
  z-index: 999;
}

/* ======================================================
   🔐 FORM LOGIN & REGISTER
   ====================================================== */
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 150px);
  background-color: #f9fdf9;
}

/* Container login/register */
.form-container {
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 450px;
  text-align: center;
}

.form-container h2 {
  color: #2e8b57;
  margin-bottom: 25px;
}

.form-box label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-box input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 15px;
}

/* Teks kecil di bawah form */
.text-small {
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.text-small a {
  color: #2e8b57;
  text-decoration: none;
  font-weight: 600;
}

.text-small a:hover {
  text-decoration: underline;
}

/* ======================================================
   📑 FORM PENGAJUAN SURAT
   ====================================================== */
.formulir-container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Baris form (2 kolom) */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Tombol submit pengajuan */
.form-submit {
  text-align: center;
  margin-top: 20px;
}

.form-submit button {
  padding: 12px 25px;
  background: green;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ======================================================
   🗂️ CARD DAFTAR PENGAJUAN
   ====================================================== */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  width: 50%;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

.card p {
  margin: 5px 0;
  font-size: 14px;
  color: #444;
}

/* Status berwarna */
.status.acc {
  color: green;
  font-weight: bold;
}
.status.ditolak {
  color: red;
  font-weight: bold;
}
.status.pending {
  color: orange;
  font-weight: bold;
}

/* Form validasi di dalam card */
.card form {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
}

.card form label {
  font-weight: bold;
  display: block;
  margin-top: 8px;
}

.card form select,
.card form textarea,
.card form input[type="file"] {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Tombol aksi di dalam card */
.card form button {
  margin-top: 12px;
  padding: 10px 20px;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.card form button:hover {
  background: #0056b3;
}
