/* 
===================
New Navigation Bar Styles
===================
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --white: #ffffff;
  --light: #f8fafc;
  --dark: #1e293b;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Main Navbar Container */
.navbar {
  background-color: var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow);
}

/* Brand Logo Section */
.navbar-brand {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.logo-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-left: 15px;
}

/* Navbar Container */
.navbar-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Main Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
}

.nav-row {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: var(--white);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: center;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  background-color: transparent;
  border: none;
  margin-left: auto;
  z-index: 1050;
}

.hamburger-inner {
  position: relative;
  width: 24px;
  height: 18px;
}

.hamburger-inner span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 4px;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-inner span:nth-child(1) {
  top: 0;
}

.hamburger-inner span:nth-child(2) {
  top: 8px;
}

.hamburger-inner span:nth-child(3) {
  top: 16px;
}

.hamburger.active .hamburger-inner span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger.active .hamburger-inner span:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-inner span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow);
  overflow-y: auto;
  transition: all 0.4s ease;
  z-index: 1040;
}

.mobile-nav.active {
  left: 0;
}

.mobile-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-brand .logo-circle {
  width: 45px;
  height: 45px;
}

.mobile-brand .logo-text {
  font-size: 1rem;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-item {
  margin-bottom: 0.5rem;
}

.mobile-link {
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-link i {
  margin-right: 10px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.mobile-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.mobile-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .nav-menu,
  .nav-row {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .navbar-brand .logo-text {
    font-size: 1rem;
  }
  
  .navbar-container {
    flex-direction: row;
  }
  
  .navbar-top {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand .logo-text {
    font-size: 0.9rem;
    max-width: 150px;
  }
  
  .logo-circle {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575.98px) {
  .mobile-nav {
    width: 100%;
  }
  
  .navbar-brand .logo-text {
    display: none;
  }
  
  .mobile-brand .logo-text {
    display: block;
    font-size: 0.9rem;
  }
} 