@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Pacifico&display=swap");

:root { 
  --background-color: #f1f5f7;
  --default-color: #2E8B57;
  --accent-color:#0d3b66;
  --surface-color: #ffffff; 
  --heading-color: #011e2c; 
  --navlink-color:#55c57a;
  --navbar-height:45px;
}

html, body {
  height: 100%;
  margin: 0;
  padding-top:var(--navbar-height);
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg,#fff,#eef2f7);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scroll-behavior:smooth;

}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  background: var(--accent-color); 
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
  padding-top: 6px;
  padding-bottom: 6px;

}

.navbar-brand {
  font-family: 'Pacifico', cursive;
  font-size:clamp(20px,3vw,28px);
  color: #fff;

}
.nav-link {
  color: #fff !important;
  font-weight: 700;
  border: 2px solid #008000;
  padding: 8px 12px;
  margin: 0 2px;
  font-size: 13px;
  transition: .3s;
  border-radius: 8px;
  position:relative;
}

.nav-link::after{
    content:"";
    position:absolute;
    bottom:-3px;
    left:50%;
    width:0;
    height:3px;
    background:#fff;
    transition:.3s;
    transform:translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after{
    width:70%;
}

.nav-link:hover,
.nav-item.active .nav-link {
  transition:background-color .3s,color .3s,border-color .3s;
  border-color: #fff;
}

.dropdown-menu{
    border: none;
    min-width: 220px;
    box-shadow: 0 15px 30px rgba(0,0,0,.2);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:.25s;
    display:block;
}

.dropdown:hover>.dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}


@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 12px;
  }
}

.dropdown-item {
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.dropdown-item:hover {
  background: var(--accent-color);
  color: #fff;
}

.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  display: none;
}

@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
  }
  .dropdown-menu.show {
    display: block;
  }
  .dropdown-submenu .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding-left: 15px;
  }
  .dropdown-submenu .dropdown-menu.show-submenu {
    max-height: 500px;
  }
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
  .navbar-nav .nav-link {
    padding: 10px 14px;
    text-align: left;
    width: 100%;
  }
}


/* =====================================================
   CONTENT
===================================================== */

.main-content {
  flex: 1; 
  padding-top: 5px;
  padding-bottom: 15px;
}

.content-section { 
  padding: 0px 0; 
}
#mapid {
  height: 100vh; 
  width: 100%;
  /*height: 300px;*/
  background: #e2e2e2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* ==============================
FORMAT UNTUK INPUT FORM
============================== */
.ukurantext{
  font-size: 13px;
  border: 1px solid gray;
  border-radius: 0px;
  margin-top: -5px;
  margin-bottom: 5px;
}
.ukuranlabel{
  font-size: 13px;
  font-weight: bold;
}

/* Container breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  font-family: "Poppins", sans-serif;
  /*font-size: 14px;*/
  margin-top: -15px;

}

/* Item breadcrumb */
.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #495057;
  transition: color 0.3s;
}

/* Separator ">" */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  display: inline-block;
  color: #6c757d;
}

/* Hover effect untuk link */
.breadcrumb-item a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s;
}
/* Item aktif */
.breadcrumb-item.active {
  color: #DC143C;
  font-weight: bold;
  pointer-events: none; /* Tidak bisa diklik */
}

.styletombol{
  color:#FFFFFF; 
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  height: 35px;
  padding-top: 8px;
  margin-top: 0px; 
  width: 120px;
  background-color: var(--accent-color);
  display: inline-block;
  border: none;
}
.styletombol:hover {
  color: #FFFFFF;
  background-color: var(--accent-color);
}
.styletombolgridedit{
  color:#FFFFFF; 
  height: 28px;
  width: 30px;
  background-color:#00BFFF;
  display: inline-block;
  font-size: 12px;
}
.styletombolgridedit:hover {
  color: #FFFFFF;
}
.styletombolgridhapus{
  color:#FFFFFF; 
  height: 28px;
  width: 30px;
  font-size: 12px;
  background-color: #DC143C;
  display: inline-block;
  font-size: 12px;
}
.styletombolgridhapus:hover {
  color: #FFFFFF;
}
.styletombolgridlist{
  color:#FFFFFF; 
  height: 28px;
  width: 30px;
  font-size: 12px;
  background-color: #6B8E23;
  display: inline-block;
  font-size: 12px;
}
.styletombolgridlist:hover {
  color: #FFFFFF;
}
.kanan {
  float: right;
}
.warnaheaderatas {
  background-color: var(--accent-color);
}
.modal-title {
  color: white;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* HEADER */
table thead th {
  padding: 16px 14px;
  text-align: center;
  background-color: #f8f9fa !important;
  font-weight: 600;
  border: 1px solid #dee2e6;
  border-bottom: 1px solid #146c43 !important;
  font-size: 13px;
}
/* BODY */
table tbody td {
  padding: 10px 8px;
  border: 1px solid #dee2e6;
}
/* GLOBAL */
table th,
table td {
  padding: 4px 6px;
  line-height: 1;
  font-size: 13px;
  background-color: #fff;
}

/* FOOTER TOTAL */
table tfoot td,
table tfoot th {
  border: 1px solid #dee2e6;
  font-weight: 700;
  background-color: #f8f9fa;
}

/* OPSIONAL: hover baris */
table tbody tr:hover {
  background-color: #f1f8f4;
}

/* HEADER DATA TABLE */
table.dataTable thead th {
  padding: 12px 6px;
  text-align: center;
  vertical-align: middle;
  background-color: #f8f9fa !important;
  color: #000;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
}

/* HOVER HEADER */
table.dataTable thead th:hover {
  background-color: #e2e6ea;
  cursor: pointer;
}

/* BODY DATA TABLE */
table.dataTable tbody td {
  padding: 10px 8px;
  border: 1px solid #dee2e6;
  font-size: 13px;
  line-height: 1.2;
}

/* FOOTER DATA TABLE */
table.dataTable tfoot td,
table.dataTable tfoot th {
  border: 1px solid #dee2e6;
  font-weight: 700;
  background-color: #f8f9fa;
}

/* ROW HOVER */
table.dataTable tbody tr:hover {
  background-color: #f1f8f4;
}

/* ==============================
Tombol navigasi 
============================== */
/*.btnnavigasi, .btn-detail-desa {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
}

.btnnavigasi {
  background: #e74c3c;
  color: #fff;
  width: 100%;
}

.btnnavigasi:hover {
  background-color: #c0392b;
  color: #fff;
}
*/

.btnnavigasi{
  display: inline-block;
  padding: 7px 10px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  background-color: #e74c3c;
  color:#FFFFFF; 
  width: 100%;
}
.btnnavigasi:hover {
  color: #FFFFFF;
}

/* ==============================
FORMAT MODAL 
============================== */
.modal-fullscreen {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.modal-fullscreen .modal-content {
  height: 100%;
  border-radius: 0;
  border: 0;
}

.modal-fullscreen .modal-body {
  /*overflow-y: auto;*/
}

.modal {
  /*padding: 0 !important;*/
}

.modal-dialog {
  /*margin: 0;*/
}

.btn-close-custom {
    font-size: 2rem;
    font-weight: bold;
    opacity: 1;
    color: #fff;
}

.btn-close-custom:hover {
    color: #ffdddd;
}

/* ==============================
FORMAT UNTUK FOOTER
============================== */
.footer {
  background: #2E8B57;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 0;           /* penting */

}

