/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #005eb7;
  display: flex;
  justify-content: space-around;
  padding: 8px 0px;
  z-index: 999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.bottom-nav a {
  color: white;
  text-align: center;
  flex: 1;
  text-decoration: none;
  line-height: 12px;
  font-size: 12px;
  padding: 5px;
  margin: 0px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bottom-nav i {
  font-size: 20px;
  margin: 0;
  padding: 0;
}

.bottom-nav a:hover {
  border-radius: 10px;
  background: rgba(21, 10, 163, 0.77);
}

/* Slide-up Menu Panel */
.menu-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: white;
  transition: bottom 0.4s ease;
  padding: 10px 0px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow-y: auto;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  z-index: 998;
}

.menu-panel.active {
  bottom: 60px; /* Tinggi bottom nav */
}

.menu-section {
  display: block;
  padding: 10px;
  font-size: 16px;
  color: #000;
  text-align:left;
  text-decoration: none;
}

.menu-panel a:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

/* Submenu container */
.has-submenu {
  padding: 0px 0px 8px 0px;
  background:none;
}

/* Link utama submenu */
.submenu-toggle {
  display: flex;
  padding: 0px 8px 8px 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.submenu-toggle .toggle-icon {
  margin-left: auto; /* dorong icon ke kanan */
}
.submenu-toggle:hover {
  background: none;
  color: #000;
}

.menu-section i:first-child,
.submenu-toggle i:first-child {
  margin-right: 8px;
}

/* Panah */
.arrow {
  transition: transform 0.25s ease;
  color: #999;
  font-size: 14px;
}
.arrow.down {
  transform: rotate(90deg);
}

/* Submenu */
.submenu {
  transition: transform 0.5s ease;
  display: none;
}

.submenu a {
  display: block;
  padding: 8px 0px 8px 35px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.submenu a:hover {
  background: #f0f0f0;
}

/* Mobile only */
@media (min-width: 769px) {
  .bottom-nav,
  .menu-panel {
    display: none !important;
  }
}
