/* ================= NAVBAR STYLES ================= */
.navbar {
  padding: 0.75rem 0;
  min-height: 70px;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50 !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #007bff !important;
}

.navbar-nav {
  width: 100%;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.3rem;
  color: #6c757d !important;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: #007bff !important;
}

.nav-link.active {
  color: #007bff !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Fix menu icon visibility */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  z-index: 1000;
  position: relative;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
}

/* ================= RESPONSIVE NAVBAR ================= */

/* Tablet and Mobile */
@media (max-width: 991px) {
  .navbar {
    padding: 0.5rem 0;
    min-height: 60px;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .nav-link {
    margin: 0.25rem 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .navbar-toggler {
    z-index: 1001;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .navbar {
    padding: 0.5rem 0;
    min-height: 55px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    z-index: 1002;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: white;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  .nav-link {
    border-bottom: 1px solid #f8f9fa;
    margin: 0;
    font-size: 0.85rem;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .navbar {
    padding: 0.4rem 0;
    min-height: 50px;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand i {
    font-size: 0.9rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .navbar-toggler-icon {
    width: 20px;
    height: 20px;
  }
}
