/* nav.css - Standardized navigation styling across all pages */

/* Reset any potential font or style inheritance for navigation elements */
.sidebar-nav-container,
.sidebar-nav-container *,
.sidebar-nav,
.sidebar-nav *,
.sidebar-nav-logo,
.sidebar-nav-logo *,
.sidebar-toggle,
.sidebar-toggle * {
  font-family: 'Arial', sans-serif !important;
  box-sizing: border-box !important;
}

/* Force consistent styling for the sidebar navigation regardless of page-specific CSS */
html body .sidebar-nav-container {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  height: 100vh !important;
  width: 250px !important;
  background: #222 !important;
  z-index: 1000 !important;
  box-shadow: 3px 0 10px rgba(0,0,0,0.3) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border: none !important;
}

html body .sidebar-nav-container.collapsed {
  width: 60px !important;
}

html body .sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  padding: 1rem 0 !important;
  flex-grow: 1 !important;
  overflow-y: auto !important;
  margin: 0 !important;
}

html body .sidebar-nav-logo {
  text-align: center !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  min-height: 20px !important;
  background: #222 !important;
}

/* Style for the title */
html body .sidebar-title {
  color: #ff0033 !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 1px !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
  font-family: 'Orbitron', 'Arial', sans-serif !important;
  line-height: 1.2 !important;
  transition: all 0.3s ease !important;
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

html body .sidebar-nav-container.collapsed .sidebar-nav-logo {
  padding: 1rem 0 !important;
}

html body .sidebar-nav-container.collapsed .sidebar-title {
  opacity: 0 !important;
  font-size: 0 !important;
  display: none !important;
}

html body .sidebar-nav a {
  color: #f2f2f2 !important;
  text-decoration: none !important;
  padding: 0.8rem 1.5rem !important;
  margin: 0.2rem 0 !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  font-size: 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  line-height: 1.2 !important;
  background: transparent !important;
  border: none !important;
  border-left: 3px solid transparent !important;
}

html body .sidebar-nav a .nav-icon {
  margin-right: 15px !important;
  font-size: 1.2rem !important;
  min-width: 20px !important;
  text-align: center !important;
}

html body .sidebar-nav a .nav-text {
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
}

html body .sidebar-nav-container.collapsed .sidebar-nav a {
  padding: 0.8rem !important;
  justify-content: center !important;
}

html body .sidebar-nav-container.collapsed .sidebar-nav a .nav-text {
  opacity: 0 !important;
  width: 0 !important;
  margin: 0 !important;
}

html body .sidebar-nav a:hover {
  color: #ff0033 !important;
  background: rgba(255,255,255,0.05) !important;
}

html body .sidebar-nav a.active {
  color: #ff0033 !important;
  background: rgba(255,255,255,0.05) !important;
  border-left: 3px solid #ff0033 !important;
}

html body .sidebar-toggle {
  position: absolute !important;
  top: 20px !important;
  right: -15px !important;
  width: 30px !important;
  height: 30px !important;
  background: #ff0033 !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  color: white !important;
  cursor: pointer !important;
  z-index: 1001 !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
}

html body .sidebar-toggle i {
  transition: transform 0.3s ease !important;
}

html body .sidebar-nav-container.collapsed .sidebar-toggle i {
  transform: rotate(180deg) !important;
}

/* Main content adjustment */
html body .main-content {
  margin-left: 250px !important;
  transition: margin 0.3s ease !important;
}

html body .main-content.expanded {
  margin-left: 60px !important;
}

/* Mobile responsive adjustments */
@media (max-width: 1024px) {
  html body .sidebar-nav-container {
    width: 60px !important;
  }
  
  html body .sidebar-nav-container .sidebar-nav a {
    padding: 0.8rem !important;
    justify-content: center !important;
  }
  
  html body .sidebar-nav-container .sidebar-nav a .nav-text {
    opacity: 0 !important;
    width: 0 !important;
    margin: 0 !important;
  }
  
  html body .main-content {
    margin-left: 60px !important;
  }
  
  html body .sidebar-nav-container.expanded {
    width: 250px !important;
  }
  
  html body .sidebar-nav-container.expanded .sidebar-nav a {
    padding: 0.8rem 1.5rem !important;
    justify-content: flex-start !important;
  }
  
  html body .sidebar-nav-container.expanded .sidebar-nav a .nav-text {
    opacity: 1 !important;
    width: auto !important;
    margin-left: 15px !important;
  }
  
  html body .main-content.collapsed {
    margin-left: 250px !important;
  }
}

@media (max-width: 767px) {
  html body .sidebar-nav-container {
    transform: translateX(-100%) !important;
    width: 250px !important;
  }
  
  html body .sidebar-nav-container.expanded {
    transform: translateX(0) !important;
  }
  
  html body .sidebar-toggle {
    right: -45px !important;
    background: rgba(255, 0, 51, 0.8) !important;
  }
  
  html body .main-content {
    margin-left: 0 !important;
  }
  
  html body .sidebar-nav-container .sidebar-nav a .nav-text {
    opacity: 1 !important;
    width: auto !important;
    margin-left: 15px !important;
  }
  
  html body .sidebar-nav-container .sidebar-nav a {
    padding: 0.8rem 1.5rem !important;
    justify-content: flex-start !important;
  }
}

/* Mobile hamburger menu */
html body .mobile-nav-toggle {
  display: none !important;
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 1002 !important;
  background: #ff0033 !important;
  color: white !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 5px !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

@media (max-width: 767px) {
  html body .mobile-nav-toggle {
    display: flex !important;
  }
  
  html body .sidebar-toggle {
    display: none !important;
  }
} 