@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");

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #eaf3fc !important;
  font-family: "Poppins", sans-serif !important;
}

.loader-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(234, 243, 252, 0.6);
  z-index: 9999;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: #2376ba;
  animation: l15 1s infinite linear;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}

.loader::after {
  margin: 8px;
  animation-duration: 3s;
}

@keyframes l15 {
  100% {
    transform: rotate(1turn);
  }
}

/* Layout skeleton */
.wrapper {
  align-items: stretch;
  display: flex;
  width: 100%;
  height: 100%;
}

#sidebar {
  z-index: 2;
  height: 100vh;
  position: fixed;
  max-width: 280px;
  min-width: 280px;
  background-color: #212529;
  transition: margin-left 0.35s ease-in-out;
}

/* Sidebar collapse */

#sidebar.collapsed {
  margin-left: -280px;
}

.main {
  width: 100%;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  position: relative;
  flex-direction: column;
  transition: all 0.35s ease-in-out;
}

.main nav.navbar {
  background-color: #2376ba;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main nav a.navbar-brand {
  font-weight: 700;
}

.main nav a.navbar-brand,
.main nav a.navbar-brand:hover,
.main nav a.navbar-brand:focus {
  color: white;
}

.main nav button span.navbar-toggler-icon {
  background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e%3c!--!Font Awesome Free 6.5.1 by %40fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3e%3cpath fill='%23ffffff' d='M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z'/%3e%3c/svg%3e")
    center center no-repeat !important;
  background-size: contain !important;
}

.sidebar-logo {
  padding: 1.15rem 1.5rem;
}

.sidebar-logo a {
  color: white;
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-nav {
  padding: 0;
  margin-top: 5rem;
}

.table {
  margin-bottom: 0 !important;
}

.sidebar-nav::-webkit-scrollbar {
  width: 0;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

ul.sidebar-nav > li.sidebar-item > a.sidebar-link:hover,
ul.sidebar-nav > li.sidebar-item > a.sidebar-link:focus {
  background-color: #2b3035;
}

ul.sidebar-nav:not(.sidebar-nav-bottom)
  > li.sidebar-item
  > a.sidebar-link:not(.collapsed) {
  background-color: #2376ba;
}

ul.sidebar-nav > li.sidebar-item-modul ul li.sidebar-item-menu a {
  cursor: default;
  background-color: #2b3035;
}

ul.sidebar-nav > li.sidebar-item-modul ul li.sidebar-item-sub-menu a {
  padding-left: 3.125rem;
}

ul.sidebar-nav > li.sidebar-item-modul ul li.sidebar-item-sub-menu a:hover,
ul.sidebar-nav > li.sidebar-item-modul ul li.sidebar-item-sub-menu a:focus,
ul.sidebar-nav > li.sidebar-item ul#pengaturan li.sidebar-item a:hover,
ul.sidebar-nav > li.sidebar-item ul#pengaturan li.sidebar-item a:focus,
ul.sidebar-nav > li.sidebar-item-modul ul li.sidebar-item-sub-menu a.active,
ul.sidebar-nav > li.sidebar-item ul#pengaturan li.sidebar-item a.active {
  background-color: #2376ba;
}

a.sidebar-link {
  color: white;
  display: block;
  font-size: 1rem;
  position: relative;
  text-decoration: none;
  padding: 0.625rem 1.625rem;
  text-transform: capitalize;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 0.075rem 0.075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  color: white;
  transform: rotate(-135deg);
  transition: all 0.2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all 0.2s ease-out;
}

/* Main Content */

.main main.content {
  flex: 1;
  width: auto;
  margin-top: 5rem;
  padding-bottom: 6.25rem;
}

/* Tab */
div#tab-container ul.nav-tabs {
  border: 0;
}

div#tab-container ul.nav-tabs li.nav-item {
  margin: 0 !important;
}

div#tab-container ul.nav-tabs li.nav-item a.nav-link {
  color: #0c2640;
  font-weight: 500;
  border: 1px solid #10498f;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

div#tab-container ul.nav-tabs li.nav-item a.nav-link:hover {
  color: white;
  border: 1px solid #10498f;
}

div#tab-container ul.nav-tabs li.nav-item a.nav-link.active {
  color: white;
}

div#tab-container ul.nav-tabs li.nav-item a.nav-link:hover,
div#tab-container ul.nav-tabs li.nav-item a.nav-link.active {
  background-color: #2376ba;
}

/* Footer */
footer {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  color: #2376ba;
  font-weight: 500;
  text-align: center;
  position: absolute;
  background-color: #eaf3fc;
  border-top: 1px solid #c6c7c8;
}

/* Responsive */

@media (min-width: 992px) {
  #sidebar {
    z-index: 0;
  }

  .main {
    margin-left: 280px;
  }

  #sidebar.collapsed ~ .main {
    margin-left: 0;
  }
}
