
/* ================================================
   🌗 THEME VARIABLES (Dark & Light Mode Compatible)
   ================================================ */
:root {
  --ng-bg: #0f0f10;
  --ng-card: rgba(255,255,255,0.04);
  --ng-accent: #00b7ff;
  --ng-text: #e6eef8;
}

body.light-mode {
  --ng-bg: #ffffff;
  --ng-card: rgba(0,0,0,0.05);
  --ng-accent: #007bff;
  --ng-text: #000000;
}


/* ================================================
   Neoglass App Footer v3.6 — Match Header Slim Glass
   ================================================ */

:root {
  --footer-bg: rgba(17, 17, 17, 0.7); /* sama seperti header */
  --footer-border: rgba(255, 255, 255, 0.05);
  --footer-text: #bbb;
  --footer-active: #fff;
  --footer-hover: var(--ng-accent, #4cc3ff);
  --footer-icon-size: 20px;
}

body.light-mode {
  --footer-bg: rgba(255, 255, 255, 0.85);
  --footer-border: rgba(0, 0, 0, 0.1);
  --footer-text: #444;
  --footer-active: #111;
  --footer-hover: var(--ng-accent, #007bff);
}

/* 🔹 Container utama (lebih tipis, lebih elegan) */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px; /* 🔥 lebih tipis dari 62px */
  background: var(--footer-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  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;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
}

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

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

/* 🔹 Hover effect */
.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 menu aktif */
.footer-item.active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--footer-active);
  margin-top: 3px;
}

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

/* 📱 Responsive (Card style di tablet/desktop) */
@media (min-width: 768px) {
  .app-footer {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  }
}

/* Notch safe */
@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;
  }
}
