/* Avatar di navbar */
.nav-profile {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
  cursor: pointer;
}

/* Dropdown style */
.dropdown-menu {
 position: absolute;
 top: 100%;
 left: 50%;
 transform: translateX(-50%); /* biar rata tengah */
 margin-top: 8px;
 width: 240px;
 background: #fff;
 border-radius: 8px;
 padding: 10px;
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 list-style: none;
 z-index: 999;
}

.dropdown-menu li {
  margin: 8px 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
  
}

/* Profile Card */
.profile-card {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.profile-card .profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;     /* tampilkan seluruh gambar */
  object-position: center;
  margin: 5px;
  border: 2px solid #ddd;
  background-color: #f8f8f8; /* latar belakang lingkaran */
  padding: 3px; 
}
.profile-card .profile-name {
  font-size: 16px;
  margin: 5px 0;
  font-weight: bold;
  color: #333;
}

.btn-profile {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.btn-profile:hover {
  background: #333;
}


.profile-mobile { display: none; }
.profile-card { display: block; }

@media (max-width: 576px) {
  ul.dropdown-menu .profile-card { display: none; }
  ul.dropdown-menu .profile-mobile { display: block; }
  ul.dropdown-menu {
    all: unset;
    list-style: none;
    padding: 0;
    margin: 0;
  }
}

.navigation .lang-switch {
  display: flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* cegah pecah baris */
}
.navigation .lang-switch a {
  display: inline-flex;
  align-items: center;
}
.navigation .lang-switch span {
  display: inline-block;
}

.navigation .lang-flag img {
  height: 14px;
  display: block;
  border-radius: 0;   /* pastikan kotak */
  box-shadow: none;   /* opsional, biar polos */
}

.lang-flag img {
  width: 20px;
  height: 20px;
  border-radius: 50%;   
  object-fit: cover;   
  border: 1px solid #ddd; 
  vertical-align: middle;
}

/*pdf frame*/
.pdf-container {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;         
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #f9f9f9;
  padding: 0;                 
}

.pdf-frame {
  width: 100%;
  height: 80vh;               
  min-height: 400px;         
  border: none;
  display: block;             
}


@media (max-width: 992px) {
  .pdf-container {
    margin: 30px auto;
  }

  .pdf-frame {
    height: 65vh;
  }
}

@media (max-width: 576px) {
  .pdf-container {
    margin: 10px 5px;           
    border-radius: 5px;        
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .pdf-frame {
    height: 60vh;             
  }
}

.pdf-download {
  text-align: right;
  margin: 10px 0;
}

.pdf-download a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #b1710d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.pdf-download a:hover {
  background-color: #8f5700;
}



.logo-preview {
  display: block;
  max-height: 80px;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 4px;
  background: #fafafa;
}

.btn-ubah-logo {
  background: #000;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-ubah-logo:hover {
  background: #333;
}

.form-upload-logo {
  display: none; /* disembunyikan awalnya */
  margin-top: 10px;
}
.readmore-wrapper {
  position: relative;
  display: inline-block;
}

/* tombol bertumpuk di posisi yang sama */
.readmore-wrapper .read-more {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
}

/* hanya bahasa aktif yang tampil */
.lang-text[style*="display: none"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

ul.lang-textartikel {
  list-style-type: disc !important;
  padding-left: 20px !important;
}

ul.lang-textartikel li {
  list-style-type: disc !important;
  display: list-item !important;
  margin-left: 33px;
}



/* gaya tombol tetap seperti yang kamu buat */
.read-more {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #0e5b2d;
  color: #0e5b2d;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms ease;
  line-height: 1;
  box-shadow: none;
}

.read-more:hover,
.read-more:focus {
  background: rgba(14,91,45,0.08);
  color: #073d20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,91,45,0.06);
}




.logo-container {
  padding: 30px 0;
}
.logo-container img {
  max-height: 100;   
  max-width: 300;   
  object-fit: contain;
  margin: 10px 20px;
  filter: grayscale(30%); 
  transition: filter 0.3s ease;
}
.logo-container img:hover {
  filter: grayscale(0%); 
}

.cursor-box {
  position: fixed;
  min-width: 200px;
  padding: 10px 15px;
  background: #fff;
  color: #333;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.cursor-box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #007bff;
}

.btn-back {
  border: 2px solid #0e5b2d;   /* border hijau */
  color: #0e5b2d;              /* teks hijau */
  padding: 6px 16px;           /* ukuran tombol */
  border-radius: 999px;        /* bentuk kapsul */
  text-decoration: none;       /* hilangkan garis bawah */
  font-weight: 500;
  transition: all 0.2s ease;
  margin-left: 10px;           /* jarak antar tombol */
}

.btn-back:hover {
  background-color: #0e5b2d;   /* hijau isi saat hover */
  color: white;                /* teks jadi putih */
}

.table-container {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 10px;
}

/* Tabel utama */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  min-width: 600px;
}

.custom-table thead {
  background: #0e5b2d;
  color: #fff;
  text-align: left;
}

.custom-table th, .custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.custom-table tbody tr:hover {
  background: #f3f9f4;
}

/* Status badge */
.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  
}
.status.aktif {
  background-color: #D4EDDA;
  color: #155724;
}
.status.nonaktif {
  background-color: #E2E3E5;
  color: #383D41;
}

.status.butuh {
  background-color: #E9ECEF;
  color: #6C757D;
}

.status.pending {
  background-color: #FFF3CD;
  color: #856404;
}

.status.tolak {
  background-color: #F8D7DA;
  color: #721C24;
}

/* Tombol aksi */
.btn-action {
  padding: 6px 14px;
  border: 2px solid #0e5b2d;
  border-radius: 999px;
  background: transparent;
  color: #0e5b2d;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-action:hover {
  background: #0e5b2d;
  color: #fff;
}

/* Responsif tambahan */
@media (max-width: 576px) {
  .custom-table th, .custom-table td {
    padding: 10px;
    font-size: 14px;
  }
  .btn-action {
    padding: 5px 10px;
    font-size: 13px;
  }
}

.horizontal-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.left-group {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.icon-box {
    width: 60px;
    margin-bottom: -20px;
}

.right-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.title-big {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}
