/* ================================================
   Neoglass App Footer Style v2 (5-button layout)
   ================================================ */

:root {
  --footer-bg: rgba(16, 16, 16, 0.9);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: #aaa;
  --footer-active: #fff;
  --footer-hover: #ddd;
  --footer-icon-size: 22px;
}

body.light-mode {
  --footer-bg: rgba(255, 255, 255, 0.95);
  --footer-border: rgba(0, 0, 0, 0.1);
  --footer-text: #555;
  --footer-active: #000;
  --footer-hover: #111;
}

/* Container utama */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--footer-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  font-family: "Inter", sans-serif;
  animation: slideUp 0.35s ease-out;
}

/* Item menu */
.footer-item {
  flex: 1;
  text-align: center;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding-top: 3px;
  user-select: none;
}

.footer-item i {
  font-size: var(--footer-icon-size);
  line-height: 1;
  margin-bottom: 3px;
  transition: transform 0.2s ease, color 0.25s;
}

/* Hover efek */
.footer-item:hover i {
  transform: translateY(-2px);
  color: var(--footer-hover);
}

/* Menu aktif */
.footer-item.active {
  color: var(--footer-active);
  font-weight: 600;
}

.footer-item.active i {
  transform: scale(1.1);
  color: var(--footer-active);
}

/* Dot kecil di bawah item aktif */
.footer-item.active::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--footer-active);
  margin-top: 3px;
}

/* Tambahkan ruang bawah supaya konten tidak tertutup footer */
.ng-footer {
  text-align: center;
  padding: 80px 0 15px;
  font-size: 12px;
  color: var(--footer-text);
}

/* Responsive (centered card layout di layar besar) */
@media (min-width: 768px) {
  .app-footer {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  }
}

/* Support device dengan notch */
@supports (padding: max(0px)) {
  .app-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Animasi muncul */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
