.custom-navbar {
  background: #1a73e8; /* Blue background */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1030;
}

.custom-nav-item {
  display: flex;
  flex-direction: column; /* icon above, text below */
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  height: 70px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  font-size: 13px;
  transition: background 0.2s ease-in-out;
  position: relative;
}

.custom-nav-item:last-child {
  border-right: none;
}

/* Hover/active background */
.custom-nav-item:hover {
  background: #0d47a1;
}

/* Active page different color */
.custom-nav-item.active {
  background: #ff9800 !important;  /* Orange highlight */
  color: #fff !important;
}

/* Icon spacing */
.custom-nav-item i {
  margin-bottom: 3px;
  font-size: 18px;
}

/* Mobile view: hide text, show tooltip on hover */
@media (max-width: 768px) {
  .custom-nav-item span {
    display: none;
  }
  .custom-nav-item {
    height: 60px;
  }

  /* Tooltip effect */
  .custom-nav-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: -28px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
  }

  .custom-nav-item:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Tooltip style */
.custom-nav-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.custom-nav-item.show-tooltip::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
