body {
/*     font-family: 'Segoe UI', sans-serif; */
/*      background: linear-gradient(120deg, #eaebe9, #03038b9c);  */
     
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* -------- Sidebar Logo -------- */
.sidebar-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  width: 190px;
  z-index: 10;
  pointer-events: none;
}

/* -------- Sidebar -------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  min-height: 95vh;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #cfd8dc, #3f0ea2);
  color: #212121;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: transform 0.3s ease;  
}

.sidebar-hidden {
  transform: translateX(-300px);
}

.sidebar-visible {
  transform: translateX(0);
}

/* -------- Top Sidebar -------- */
.top-sidebar {
  background: linear-gradient(to bottom, #800000, #b22222, #5a0606);
  color: #ffffff; /* Putih bersih */
  text-align: center;
  display: flex;
  justify-content: center;     /* Horizontal center */
  align-items: center;         /* Vertical center */
  height: 9.7vh;
  max-height: 9.7vh;
  font-size: 14px;
  top: 0;
  position: relative;          /* optional, in case you need positioning */
}

/* -------- Middle Sidebar -------- */
.midle-sidebar {
  position: relative;
  background-color: #e2e2e2;
  height: calc(95vh - 9.7vh - 13px); /* total sidebar height - top-sidebar - bottom */
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden; /* 👈 Hindari scroll di sini */
}

.menu-sidebar {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  scrollbar-width: thin;
}

.menu-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.menu-item a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.menu-item a i {
  margin-right: 10px;
}

.menu-item a:hover {
  color: blue;
  font-size: 17px;
  font-style: italic;
  text-shadow: 1px 1px 3px rgba(67, 22, 3, 0.5);
}

/* Submenu */
.submenu,
.sub-submenu {
  list-style: none;
  padding-left: 20px;
  display: none;
}

.sub-submenu {
  padding-left: 15px;
}

.submenu-item a,
.sub-submenu-item a {
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
}

.submenu-item a {
  color: #333;
}

.sub-submenu-item a {
  color: yellow;
}

.sub-submenu-item a i {
  margin-right: 20px;
  color: maroon;
}

/* Active & Disabled states */
.menu-item.active a,
.submenu-item.active a {
  color: blue;
}

.menu-item.disabled a,
.submenu-item.disabled a,
.sub-submenu-item.disabled a {
  pointer-events: none;
  cursor: not-allowed;
  color: gray;
  opacity: 0.6;
  font-style: italic;
}

/* -------- Bottom Sidebar -------- */
.bottom-sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 47px;
  max-height: 47px;
  background: linear-gradient(to bottom, #800000, #b22222, #5a0606);
  color: #ffd700; /* Emas Cerah Elegan */
  font-size:12px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.bottom-sidebar1 {
  position: fixed;
  bottom: 0;
  background: linear-gradient(to bottom, #800000, #b22222, #5a0606);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* -------- Main Content -------- */
.main-content {
  margin-left: 300px;
  width: calc(100vw - 300px);
  height: 95vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease, width 0.3s ease;
  z-index: 50;
}

.main-content.full-width {
  margin-left: 0;
  width: 100vw;
}

/* -------- Top Content -------- */
.top-content {
  position: fixed;
  top: 0;
  left: 300px;
  width: calc(100% - 300px);
  min-height: 4vh;
  max-height: 4vh;
  background-color: #bbb;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: left 0.3s ease, width 0.3s ease;
}

.top-content.full-width {
  left: 0;
  width: 100%;
}

/* -------- Header Modul -------- */
.header-modul {
  position: fixed;
  left: 300px;
  width: calc(100% - 300px);
  top:0;
  min-height:9.7vh;
  max-height:9.7vh;
  background: linear-gradient(to bottom, #ece7e7, #dfdada, #a19e9e);
  color: maroon;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  transition: left 0.3s ease, width 0.3s ease;
}

.header-modul.full-width {
  left: 0;
  width: 100%;
}

.modul-menu {
  font-size: 16px;
  color: black;
  text-shadow: 2px 2px 4px rgba(239, 88, 74, 0.4);
  padding: 5px;
  justify-content: center;
  align-items: center;
}

/* -------- Dashboard Content -------- */
.dashboard-content {
  max-height: calc(100vh - 10vh);
  margin-top: 5vh;
  margin-bottom: 5vh;
  width: 100%;
  overflow-y: auto;
  background-color: #f9f9f9;
  border-radius: 8px;
  display: flex;
  justify-content: center;
}

.inner-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 20px;
}

/* -------- Footer -------- */
.footer {
  position: fixed;
  bottom: 0;
  left: 300px;
  width: calc(100% - 300px);
  height: 47px;
  max-height: 47px;
  background: linear-gradient(to bottom, #6f6a6a, #bdb3b3, #a19e9e);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  transition: left 0.3s ease, width 0.3s ease;
}

.footer.full-width {
  left: 0;
  width: 100%;
}

.footer-info {
  font-size: 12px;
}

/* Optional: Adjust column widths if needed */
.col-left {
    position: absolute;
    top: 70%;
    transform: translateY(-50%);
}

.col-center {
    flex: 1;
    justify-content: center;
}

.col-right, #kontenKanan {
    display: flex;
    justify-content: flex-end;
    align-items: center;    
    margin-top:25px;
    padding: 5px;    
    width: 100%;
    padding-right: 10px;
}

/* -------- Modal & Loading -------- */
#modalOkButton {
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;

}

#modalOkButton:hover {
  background-color: #0056b3;
}

.modal-notif {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(170, 170, 196, 0.4);
}

.modal-notif-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 400px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #888;
}

.modal-notif-content.success {
  color: #155724;
  border-color: #c3e6cb;
}

.modal-notif-content.error {
  color: #721c24;
  border-color: #f5c6cb;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #000;
}

#loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 5%;
  height: 5%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 8px solid maroon;
  border-top: 8px solid darkorange;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* -------- Toggle Sidebar Button -------- */
/* #toggleSidebarBtn {
  position: fixed;
  top: 12vh;
  left: 300px;
  width: 35px;
  height: 35px;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #5a0606;
  color: white;
  border: none;
  outline: none;
  z-index: 1100;
  transition: left 0.3s ease;
}
 */
 
/* Tombol toggle */
#toggleSidebarBtn {
    font-size: 16px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
}

#toggleSidebarBtn:hover {
    color: maroon;
}

#toggleSidebarBtn.sidebar-collapsed {
  left: 10px;
}

/* -------- Profile Menu -------- */
.profile-menu {
    position: absolute;
    z-index: 9999;    
    align-items: center;
    width:100%;
    justify-content: flex-end;
}

#profileBtn {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px 10px;
}
.profile-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  padding: 5px 0;
}
.profile-dropdown a {
    padding: 10px 15px;
    color: blue;
    text-decoration: none;
}
.profile-dropdown a:hover {
    color: yellow;
    background-color: rgba(255, 255, 255, 0.1);
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .sidebar {
    width: 250px;
  }

  .sidebar-hidden {
    transform: translateX(-250px);
  }

  .main-content {
    margin-left: 250px;
    width: calc(100vw - 250px);
  }

  .main-content.full-width {
    margin-left: 0;
    width: 100vw;
  }

  .footer,
  .header-modul,
  .top-content {
    left: 250px;
    width: calc(100% - 250px);
  }

  .footer.full-width,
  .header-modul.full-width,
  .top-content.full-width {
    left: 0;
    width: 100%;
  }

  #toggleSidebarBtn {
    left: 250px;
    top: 10vh;
  }

  #toggleSidebarBtn.sidebar-collapsed {
    left: 10px;
  }
}

/* -------- Transitions -------- */
.bottom-sidebar,
.footer,
.top-content,
.header-modul,
.main-content {
  transition: all 0.3s ease;
}
.spinner {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      border: 8px solid maroon;       /* Ubah dari #f3f3f3 ke maroon */
      border-top: 8px solid darkorange;     /* Warna bagian yang berputar */
      border-radius: 50%;
      width: 30px;
      height: 30px;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
