html,
body {
  height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  font-size: 14px;
}
.dashboard-wrapper {
  height: 100vh;
  overflow: hidden;
}

/* ====================== BAGIAN SIDEBAR =================================== */
.sidebar {
  width: 260px;
  height: 100vh;
  display: flex; /* WAJIB */
  flex-direction: column;
  background-color: var(--bg-sidebar);
  overflow: hidden;
  box-shadow: 7px 75px 15px -5px rgba(0, 0, 0, 0.1);
  padding: 0px !important;
}
.sidebar .logo {
  margin-top: 15px;
  width: 100%;
  text-align: center;
  padding-bottom: 15px;
  flex: 0 0 auto;
}

.sidebar .logo img {
  width: 140px;
  height: auto;
}

.sidebar .sidebar-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 30px 10px;
}

.sidebar .sidebar-content > .nav {
  padding: 0 8px 8px 8px;
  margin: 0px !important;
}

.sidebar .sidebar-content > .nav > .nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  transition:
    background-color 400ms ease-in-out,
    color 400ms ease-in-out;
  border-radius: 35px;
}

.sidebar .sidebar-content > .nav > .nav-item:hover {
  background-color: var(--sidebar-hover);
}

.sidebar .sidebar-content > .nav > .nav-item.nav-title:hover {
  background-color: transparent;
}

.sidebar .sidebar-content > .nav > .nav-item:hover .nav-link {
  color: #fff;
}

.sidebar .sidebar-content > .nav > .nav-item.active {
  background-color: var(--sidebar-active);
  color: #fff;
}

.sidebar .sidebar-content > .nav > .nav-item.active > .nav-link {
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
}

.sidebar .sidebar-content > .nav > .nav-item.nav-title {
  letter-spacing: 0.09em;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--color-sub);
  padding-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  padding-top: 10px;
}

.sidebar .sidebar-content > .nav > .nav-item > .nav-link {
  color: var(--color-item-sidebar);
  text-decoration: none;
  border-radius: 0px !important;
  transition: color 400ms ease-in-out;
  border-radius: 0px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 300;
  white-space: nowrap;
  text-transform: uppercase;
}

.sidebar .sidebar-content > .nav > .nav-item > .nav-link > .bi {
  font-size: 1rem;
}
.gap-4 {
  gap: 4px !important;
}

.sidebar .collapse .nav .nav-link:hover {
  background-color: var(--sidebar-focus);
  color: var(--sidebar-color-focus);
}

.sidebar .nav-item > .collapse > .nav > .nav-item > .nav-link {
  display: flex;
  align-items: center;
}
.psm {
  padding-left: 20px !important;
  width: 100%;
}
.sidebar .nav .nav-link i.bi-dot {
  font-size: 1.2rem;
}

/* ================================= CONTENT ============================= */

.content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
}

.content .navbar {
  position: fixed;
  top: 0px;
  left: 260px;
  right: 0;
  height: 75px;
  background-color: var(--bg-header) !important;
  box-shadow: 0px 7px 15px -10px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.content .isi {
  margin-top: 75px;
}

.box {
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-color: var(--border-color);
  padding: 15px;
  position: relative;
}

.box .box-header {
  margin-bottom: 25px;
  border-bottom: solid 1px var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 0px 0px 0px;
}

.box .box-header .box-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.filter-data {
  display: flex;
  align-items: center;
  gap: 10px; /* jarak antar elemen */
  flex-wrap: wrap; /* aman kalau layar kecil */
}

/* dropdown per-page tetap ukuran normal */
.filter-data .f-length {
  flex: 0 0 auto;
}

/* input cari mengisi sisa lebar */
.filter-data .input-group {
  flex: 1 1 auto;
  width: 150px; /* biar nggak terlalu kecil */
}

/* tombol add tetap */
#btn-add {
  flex: 0 0 auto;
  white-space: nowrap;
}

.form-control,
.form-select {
  border-radius: 0px !important;
  border-color: var(--border-color);
}

.form-control:focus,
.form-select:focus {
  box-shadow: none;
  border-color: var(--border-pastel-hijau);
}
.select2-container--bootstrap-5 .select2-selection {
  border-color: var(--border-color) !important;
  box-shadow: none !important;
  border-radius: 0px;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  box-shadow: none !important;
  border-color: var(--border-pastel-hijau) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
  background-color: #ffffff;
  border-color: var(--border-pastel-hijau) !important;
  border-radius: 0px;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: var(--pastel-hijau) !important;
  color: var(--color-pastel-hijau) !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
  background-color: var(--border-pastel-hijau) !important;
  color: var(--color-pastel-hijau) !important;
}

.select2-container--bootstrap-5 .select2-search__field {
  box-shadow: none !important;
  border-radius: 0px !important;
  border-color: var(--border-pastel-hijau) !important;
}

.btn {
  border-radius: 0px;
}

.btn.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-transform: uppercase;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.05em;
}

.btn.btn-icon i.bx {
  font-size: 1.4rem;
}
.btn-tutup {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 50% !important;
  background-color: #ff004c;
  border-color: #ff004c;
  box-shadow: 0px 0px 10px 5px 2px rgba(0, 0, 0, 0.1);
}
.btn-tutup:hover {
  background-color: #e60043;
  border-color: #e60043;
}
.btn-tutup > i.bx {
  font-size: 1.8rem;
}
.btn-skew-10 {
  transform: skew(-10deg);
  border-radius: 15px !important;
}
.input-group > :first-child {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group > :last-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.table {
  border: 0px solid var(--border);
  background-color: transparent !important;
}

.table th {
  text-align: center;
  color: var(--color);
  text-transform: uppercase;
  font-weight: 700;
}

.table th,
.table td {
  background-color: transparent !important;
  border: 1px solid var(--border);
}

.table th:first-child,
.table td:first-child {
  border-left: 0 !important;
}

.table th:last-child,
.table td:last-child {
  border-right: 0 !important;
}

/* ================= FOTO ================= */

.table th .foto,
.table td .foto {
  width: 100%;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--color);
  position: relative;
  background-color: #fff;
  box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.05);
}

.table th .foto .isi-foto,
.table td .foto .isi-foto {
  padding: 5px;
  cursor: pointer;
  opacity: 1;
  scale: 1;
  transition: all 400ms ease-in-out;
  z-index: 10;
}

.table th .foto .isi-foto img,
.table td .foto .isi-foto img {
  width: 100%;
}

.table th .foto .isi-foto:hover,
.table td .foto .isi-foto:hover {
  opacity: 0.9;
  scale: 1.01;
}

/* ================= KETERANGAN FOTO ================= */

.table th .foto .keterangan-foto,
.table td .foto .keterangan-foto {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.592);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.table th .foto .keterangan-foto h3,
.table td .foto .keterangan-foto h3 {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: #fff;
}

/* ================= BUTTON AKSI ================= */

.table th .foto .btn-aksi,
.table td .foto .btn-aksi {
  position: absolute !important;
  top: 5px;
  right: 5px;
  z-index: 100;
}

/* ================= FORM ================= */

.table .form-select,
.table .select2-selection--single {
  background-color: transparent !important;
  border-color: var(--pastel-biru) !important;
}

/* ================= DATATABLES INFO ================= */

.dt-info {
  font-style: italic;
  font-weight: 300;
  margin-left: 10px !important;
}

/* ================= PAGINATION ================= */

.dt-paging {
  padding-right: 10px;
  padding-bottom: 10px;
}

.dt-paging .pagination .page-item .page-link {
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--color);
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.dt-paging .pagination .page-item.disabled .page-link {
  background-color: var(--bg-disabled) !important;
  color: var(--color-disabled) !important;
  border-color: var(--border-disabled) !important;
  pointer-events: none;
}

.dt-paging .pagination .page-item.active .page-link {
  background-color: var(--pastel-biru) !important;
  color: #1f4f99 !important;
  border-color: var(--border-pastel-biru) !important;
}

.dt-paging .pagination .page-item.active .page-link:focus,
.dt-paging .pagination .page-item.active .page-link:focus-visible {
  box-shadow: none !important;
}

.dt-paging .pagination .page-item .page-link:focus,
.dt-paging .pagination .page-item .page-link:focus-visible,
.dt-paging .pagination .page-item .page-link:hover {
  background-color: #c7e1ff !important;
  color: #1f4f99 !important;
  border-color: var(--border-pastel-biru) !important;
  box-shadow: none !important;
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: -260px;
    transition: 0.3s;
    z-index: 1030;
  }
  .sidebar.show {
    left: 0;
  }
}
.dt-length {
  display: none !important;
}
#table_wrapper > .row:first-child {
  display: none !important;
}
.btn-kebawah {
  margin-top: 29px;
}
/* ================= MASK LOADING ================= */

.mask-loading {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 9999999;
  background-color: var(--bg-loading);
}

.mask-loading .loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mask-loading .loading span {
  display: block;
  height: 15px;
  width: 15px;
  background: var(--color-start);
  margin: 0 5px;
  border-radius: 10px;
  animation: upDown 1.5s infinite;
}

.mask-loading .loading span:first-child {
  animation-delay: 0.15s;
}

.mask-loading .loading span:nth-child(2) {
  animation-delay: 0.3s;
}

.mask-loading .loading span:nth-child(3) {
  animation-delay: 0.45s;
}

.mask-loading .loading span:nth-child(4) {
  animation-delay: 0.6s;
}

.mask-loading .loading span:last-child {
  animation-delay: 0.75s;
}

/* ================= UP DOWN ANIMATION ================= */

@keyframes upDown {
  0% {
    height: 15px;
    background: var(--color-start);
  }
  50% {
    height: 60px;
    background: var(--color-mid);
  }
  100% {
    height: 15px;
    background: var(--color-end);
  }
}

/* ================= SPINNER LOADER ================= */

.bg-loader {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 9999999;
  background-color: rgba(0, 0, 0, 0.107);
}

.bg-loader .loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--bg-spinner);
  border-bottom-color: var(--color-spinner);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ================= ROTATION ANIMATION ================= */

@keyframes rotation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.croppie-container {
  position: relative !important;
}
/* CROPPIE CSS */
.cr-boundary {
  border-radius: 10px !important;
  margin: 0px !important;
  background-color: #000;
}
.cr-slider-wrap {
  background-color: #00000018;
  width: 100% !important;
  display: flex;
  padding: 5px 10px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0px !important;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

/* WRAPPER */
.cr-slider-wrap .cr-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  outline: none;
}

/* ===================== */
/* TRACK */
/* ===================== */

/* Chrome, Edge, Safari */
.cr-slider-wrap .cr-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Firefox */
.cr-slider-wrap .cr-slider::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* IE/Edge lama */
.cr-slider-wrap .cr-slider::-ms-track {
  height: 4px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

/* ===================== */
/* THUMB (tombol bulat) */
/* ===================== */

/* Chrome */
.cr-slider-wrap .cr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #e7e7e7;
  cursor: pointer;
  margin-top: -6px; /* supaya center di track */
}

/* Firefox */
.cr-slider-wrap .cr-slider::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #e7e7e7;
  border: none;
  cursor: pointer;
}

/* IE */
.cr-slider-wrap .cr-slider::-ms-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #e7e7e7;
  cursor: pointer;
}

.cr-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff74 !important;
}

/* GRID overlay */
.cr-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* garis grid */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 1px, transparent 1px);

  /* ukuran kotak grid */
  background-size: 33.33% 33.33%; /* rule of thirds */
}
.cr-overlay {
  background: transparent !important;
}

/* buat masking dari viewport */
.cr-viewport {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
}

/* CSS MODAL  */

.modal-header {
  border: 0px !important;
}
.modal-header .modal-title {
  display: flex;
  gap: 2px;
  text-transform: uppercase;
  font-weight: 700;
  align-items: center;
  transform: skew(-17deg);
}
.modal-header .modal-title .bx {
  font-size: 1.7rem;
}

.modal-body {
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 0px !important;
}

.btn-modal {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.btn-modal .btn {
  border-radius: 20px !important;
}
.peta {
  border-radius: 10px;
  height: 87vh;
}
.peta .map {
  height: 87vh;
  width: 100%;
}

.bottom-nav-peta {
  position: absolute;
  bottom: 75px;
  left: 33px;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bottom-nav-peta .btn-peta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  border: solid 1px #fff;
  height: 45px;
  cursor: pointer;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.296);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  scale: 1;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.1);
}
.bottom-nav-peta .btn-peta:hover {
  scale: 1.2;
}

.bottom-nav-peta.nav-fs {
  z-index: 2147483647 !important;
}
