footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ccc;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  height: 60px;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
}

.footer-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  color: #8d8c8c; /* Default color */
}

.footer-menu a i {
  font-size: 20px;
  margin-bottom: 3px;
  color: #8d8c8c; /* Default icon color */
}

.footer-menu a.menu-icon svg circle {
  fill: #8d8c8c; /* Default SVG circle */
}

/* Hover effect → Black */
.footer-menu a:hover {
  transform: translateY(-7px);
  color: #000;
}
.footer-menu a:hover i {
  color: #000;
}
.footer-menu a.menu-icon:hover svg circle {
  fill: #000 !important;
}

/* Active state → #077A7D */
.footer-menu a.active {
  color: #6A42C2;
}
.footer-menu a.active i {
  color: #6A42C2;
}
.footer-menu a.active.menu-icon svg circle {
  fill: #6A42C2 !important;
}

/* Dark Mode */
html.dark-mode footer {
  background: #1e293b;
  border-top: 1px solid #333;
}

html.dark-mode .footer-menu a {
  color: #ccc; /* Default in dark mode */
}

html.dark-mode .footer-menu a i {
  color: #ccc;
}

html.dark-mode .footer-menu a.menu-icon svg circle {
  fill: #ccc;
}

html.dark-mode .footer-menu a:hover {
  color: #fff;
}
html.dark-mode .footer-menu a:hover i {
  color: #fff;
}
html.dark-mode .footer-menu a.menu-icon:hover svg circle {
  fill: #fff !important;
}

html.dark-mode .footer-menu a.active {
  color: #6A42C2;
}
html.dark-mode .footer-menu a.active i {
  color: #6A42C2;
}
html.dark-mode .footer-menu a.active.menu-icon svg circle {
  fill: #6A42C2 !important;
}