/* Font Poppins is loaded via optimized <link rel="preload/stylesheet"> in <head> */
* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

/* ================= LOGIN PAGE ================= */
.body-login {
  background-color: #0c1740;
  display: flex;
  height: 100vh;
}

.figure {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 100%;
}

.logo {
  padding-left: 50px;
  padding-top: 50px;
}

.form-login {
  background-color: white;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  width: 50%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#login-figure {
  max-width: 100%;
  height: auto;
}

.container1 {
  width: 350px;
}

.container1 .header {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.header h2 {
  font-weight: 600;
  font-size: 24px;
  color: #0c1740;
}

.input {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

/* Default Input Style for Login */
input {
  background-color: rgba(202, 214, 255, 0.4);
  border: none;
  height: 47px;
  border-radius: 8px;
  padding-left: 15px;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 400;
}

input::placeholder {
  font-size: 13px;
}

label {
  font-size: 15px;
  color: #0c1740;
  font-weight: 500;
}

.lupa-kata-sandi {
  display: flex;
  justify-content: end;
  width: 350px;
  font-weight: 500;
  margin-top: 15px;
}

.lupa-kata-sandi a {
  font-weight: 500;
  text-decoration: none;
  color: #0c1740;
  font-size: 15px;
}

.button-login {
  width: 100%;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-login button {
  border: none;
  width: 100%;
  height: 47px;
  border-radius: 8px;
  background-color: #0c1740;
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.button-login span {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.button-login button:hover {
  cursor: pointer;
  opacity: 0.9;
}

.button-login a {
  text-decoration: none;
  color: #0c1740;
}

.button-login a:hover {
  color: #cad6ff;
}

.button-login p {
  color: #385161;
  opacity: 0.8;
}

/* ================= BERANDA LAYOUT ================= */
.body-beranda {
  background-color: #f1f5f9;
  /* Update: Warna background main area lebih terang */
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Styling Content Utama */
.content {
  padding: 30px;
  margin-left: 280px;
  /* PENTING: Harus sama dengan lebar sidebar baru */
  width: calc(100% - 280px);
  min-height: 100vh;
  transition: all 0.3s ease;
  height: 100%;
}

.content-beranda {
  background-color: white;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  /* Update: Tambah shadow halus */
}

#title {
  font-weight: 600;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  color: #0c1740;
  padding: 50px;
  width: fit-content;
}

.content-beranda .btn-fitur {
  padding: 10px 0 15px 0;
}

.content-beranda .btn-fitur button {
  color: white;
  background-color: #0c1740;
  border: none;
  border-radius: 12px;
  min-height: 45px;
  height: auto;
  width: auto;
  min-width: 160px;
  padding: 10px 24px;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.content-beranda .btn-fitur button span {
  white-space: nowrap;
}

.content-beranda .btn-fitur button:hover {
  cursor: pointer;
  opacity: 0.9;
}

#kirim {
  height: 45px;
  width: 150px;
  border-radius: 8px;
  border: none;
  background-color: #0c1740;
  color: white;
}

#kirim:hover {
  opacity: 0.9;
  cursor: pointer;
}

/* ================= MODAL & MISC ================= */
.modal:not(.show) {
  display: none !important;
}

.modal-body input,
.modal-body select {
  height: 35px;
  border-radius: 8px;
  background-color: rgba(202, 214, 255, 0.4);
  opacity: 0.5;
  border: none;
  padding-left: 15px;
}

.modal-body label {
  font-weight: 500;
  font-size: 14px;
}

.checkbox:hover {
  cursor: pointer;
}

/* ================= ANIMATIONS ================= */
@keyframes subtleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Warna utama tombol aplikasi */
.btn-primary {
  color: #ffffff !important;
  background-color: #0c1740 !important;
  border-color: #0c1740 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #ffffff !important;
  background-color: #172554 !important;
  border-color: #172554 !important;
}
.box2 {
  animation: subtleBounce 3s infinite ease-in-out;
  transition: transform 0.3s ease-in-out;
  width: 65%;
  height: 65%;
  background: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  box-shadow: 5px 10px 18px rgba(171, 191, 255, 0.54);
  box-sizing: border-box;
}

.data-box {
  cursor: pointer;
  background: rgba(171, 191, 255, 0.54);
  padding: 35px;
  border-radius: 15px;
  color: #0d1a4a;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.data-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #001f3f, #003366);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 0;
  border-radius: 15px;
}

.data-box:hover::before {
  opacity: 1;
}

.data-box:hover {
  color: white;
  box-shadow: 0px 10px 25px rgba(0, 31, 63, 0.6);
  transform: translateY(-5px);
}

.data-box i {
  font-size: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s ease-in-out;
  position: relative;
  z-index: 1;
}

.data-box:hover i {
  transform: scale(1.2);
}

.data-box p {
  position: relative;
  z-index: 1;
}

@keyframes fadeSlideDownScale {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kata {
  text-align: center;
  background: rgba(13, 26, 74, 0.85);
  color: white;
  padding: 25px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  animation: fadeSlideDownScale 0.8s ease-out;
  transition: all 0.3s ease-in-out;
}

.kata:hover {
  background: rgba(13, 26, 74, 1);
  box-shadow: 0px 15px 30px rgba(0, 31, 63, 0.5);
  transform: scale(1.02);
}

.kata h2 {
  margin-bottom: 0;
}

.hello-text {
  position: absolute;
  top: 10%;
  right: -10%;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #0d1a4a;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.content-figure:hover .hello-text {
  opacity: 1;
  transform: translateY(0);
}

/* Aturan Utama untuk Konten */
.content {
  transition: all 0.3s ease;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
}

/* Tampilan Desktop (Layar Lebar >= 992px) */
@media (min-width: 992px) {
  .content {
    margin-left: 280px;
    width: calc(100% - 280px);
  }

  /* Sembunyikan tombol hamburger di desktop jika sidebar ingin selalu tampil */
  .hamburger-menu {
    display: none;
  }

  /* Pastikan sidebar tetap tampil di desktop */
  .side-bar {
    left: 0 !important;
  }
}

/* Tampilan Mobile (Layar Kecil < 992px) */
@media (max-width: 991.98px) {
  .content {
    margin-left: 0;
    width: 100%;
    /* Beri jarak atas agar tidak tertutup tombol hamburger floating */
    padding-top: 70px;
  }

  .side-bar {
    left: -100%;
    /* Sembunyikan sidebar di kiri luar layar */
  }

  .side-bar.active {
    left: 0;
    /* Tampilkan saat tombol hamburger diklik */
  }
}

/* ================= SUSUNAN TOMBOL AKSI STANDARD (IKUTI DESAIN KELOLA AKUN) ================= */
.action-buttons-vertical {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
    min-width: 95px !important;
    padding: 4px 0 !important;
}

.action-buttons-group {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 0 !important;
}

.btn-action-vert {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

/* 1. Detail / View / Profil */
.btn-action-vert.btn-action-view,
.btn-action-vert.btn-action-detail {
    background-color: #f8fafc !important;
    color: #0c1740 !important;
    border-color: #cbd5e1 !important;
}
.btn-action-vert.btn-action-view:hover,
.btn-action-vert.btn-action-detail:hover {
    background-color: #0c1740 !important;
    border-color: #0c1740 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(12, 23, 64, 0.2) !important;
    text-decoration: none !important;
}

/* 2. Edit / Ubah */
.btn-action-vert.btn-action-edit {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.btn-action-vert.btn-action-edit:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0c1740 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
}

/* 3. Delete / Hapus */
.btn-action-vert.btn-action-delete {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}
.btn-action-vert.btn-action-delete:hover {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.15) !important;
    text-decoration: none !important;
}

/* 4. PDF / Bukti / BAST */
.btn-action-vert.btn-action-pdf {
    background-color: #f8fafc !important;
    color: #0c1740 !important;
    border-color: #cbd5e1 !important;
}
.btn-action-vert.btn-action-pdf:hover {
    background-color: #0c1740 !important;
    border-color: #0c1740 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(12, 23, 64, 0.2) !important;
    text-decoration: none !important;
}

/* 5. Upload / Berkas */
.btn-action-vert.btn-action-upload {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}
.btn-action-vert.btn-action-upload:hover {
    background-color: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.2) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   ICLabs Animated Interactive Modal Design System (Theme #0c1740)
   ========================================================================== */
@keyframes iclabsPopIn {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(-15px);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes iclabsPulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(12, 23, 64, 0.25);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(12, 23, 64, 0);
    }
}

.swal2-popup.iclabs-modal {
    border-radius: 20px !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-shadow: 0 25px 60px -15px rgba(12, 23, 64, 0.28), 0 10px 20px -5px rgba(12, 23, 64, 0.12) !important;
    border: 1px solid rgba(12, 23, 64, 0.08) !important;
    padding: 28px 24px !important;
    animation: iclabsPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    background: #ffffff !important;
}

.swal2-popup.iclabs-modal .swal2-title {
    color: #0c1740 !important;
    font-weight: 700 !important;
    font-size: 1.32rem !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
}

.swal2-popup.iclabs-modal .swal2-html-container {
    color: #475569 !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
    margin: 8px 0 16px 0 !important;
}

.swal2-popup.iclabs-modal .swal2-actions {
    margin-top: 20px !important;
    gap: 12px !important;
}

.swal2-popup.iclabs-modal .swal2-confirm.iclabs-btn-confirm {
    background: linear-gradient(135deg, #0c1740 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(12, 23, 64, 0.25) !important;
    border: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-popup.iclabs-modal .swal2-confirm.iclabs-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(12, 23, 64, 0.35) !important;
}

.swal2-popup.iclabs-modal .swal2-confirm.iclabs-btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
    border: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-popup.iclabs-modal .swal2-confirm.iclabs-btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35) !important;
}

.swal2-popup.iclabs-modal .swal2-cancel.iclabs-btn-cancel {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 10px 22px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.swal2-popup.iclabs-modal .swal2-cancel.iclabs-btn-cancel:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

.swal2-popup.iclabs-modal .swal2-icon {
    margin: 8px auto 16px auto !important;
    animation: iclabsPulseGlow 2.5s infinite !important;
}