/* Modern Navbar - Inspired by React Components
   Clean, professional design with modern styling */

:root {
  /* Navbar Colors */
  --navbar-bg: #1a1a2e;
  --navbar-border: #16213e;
  --navbar-text: #ffffff;
  --navbar-text-hover: #e8e8e8;
  --navbar-text-current: #4d94ff;
  --navbar-text-muted: #b8b8b8;
  
  /* Spacing */
  --navbar-padding-x: 1rem;
  --navbar-padding-y: 0.75rem;
  --navbar-item-padding-x: 0.75rem;
  --navbar-item-padding-y: 0.5rem;
  
  /* Border Radius */
  --navbar-radius: 0.5rem;
  --navbar-item-radius: 0.375rem;
  
  /* Shadows */
  --navbar-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --navbar-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --navbar-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --navbar-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Navbar Container */
.navbar-modern {
  background-color: #000000 !important;
  border-bottom: 1px solid #333333 !important;
  box-shadow: var(--navbar-shadow);
  padding: var(--navbar-padding-y) var(--navbar-padding-x);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Navbar Content */
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--navbar-transition);
}

.navbar-logo:hover {
  color: #e8e8e8 !important;
  text-decoration: none;
  transform: scale(1.02);
}

.navbar-logo img {
  height: 2rem;
  width: auto;
  margin-right: 0.5rem;
  transition: var(--navbar-transition);
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

/* Navbar Section */
.navbar-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navbar Item */
.navbar-item {
  display: flex;
  align-items: center;
  padding: var(--navbar-item-padding-y) var(--navbar-item-padding-x);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--navbar-item-radius);
  transition: var(--navbar-transition);
  position: relative;
  white-space: nowrap;
}

.navbar-item:hover {
  color: #e8e8e8 !important;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.navbar-item.current {
  color: var(--navbar-text-current);
  background-color: rgba(0, 102, 204, 0.1);
  font-weight: 600;
}

.navbar-item.current::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2px;
  background-color: var(--navbar-text-current);
  border-radius: 1px;
}

/* Navbar Item with Icon */
.navbar-item i {
  margin-right: 0.375rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.navbar-item:hover i {
  opacity: 1;
}

/* Dropdown */
.navbar-dropdown {
  position: relative;
  display: inline-block;
}

.navbar-dropdown-toggle {
  display: flex;
  align-items: center;
  padding: var(--navbar-item-padding-y) var(--navbar-item-padding-x);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--navbar-item-radius);
  transition: var(--navbar-transition);
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
}

.navbar-dropdown-toggle:hover {
  color: #e8e8e8 !important;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.navbar-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.5rem;
  transition: var(--navbar-transition);
}

.navbar-dropdown-toggle:hover::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.navbar-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--navbar-bg);
  border: 1px solid var(--navbar-border);
  border-radius: var(--navbar-radius);
  box-shadow: var(--navbar-shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--navbar-transition);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Item */
.navbar-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--navbar-text);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--navbar-item-radius);
  transition: var(--navbar-transition);
  white-space: nowrap;
}

.navbar-dropdown-item:hover {
  color: var(--navbar-text-hover);
  background-color: rgba(0, 102, 204, 0.05);
  text-decoration: none;
  transform: translateX(4px);
}

.navbar-dropdown-item i {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

.navbar-dropdown-item:hover i {
  opacity: 1;
}

/* Dropdown Header */
.navbar-dropdown-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navbar-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* Dropdown Divider */
.navbar-dropdown-divider {
  height: 1px;
  background-color: var(--navbar-border);
  margin: 0.5rem 0;
}

/* Badge */
.navbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: #dc3545;
  color: white;
  margin-left: 0.5rem;
  min-width: 1.25rem;
  height: 1.25rem;
}

/* User Info */
.navbar-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #b8b8b8 !important;
  font-size: 0.875rem;
}

.navbar-user-info span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-user-info i {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Mobile Menu Toggle */
.navbar-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #ffffff !important;
  background: none;
  border: none;
  border-radius: var(--navbar-item-radius);
  cursor: pointer;
  transition: var(--navbar-transition);
}

.navbar-mobile-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-mobile-toggle i {
  font-size: 1.25rem;
}

/* Mobile Menu */
.navbar-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  border-top: 1px solid var(--navbar-border);
  box-shadow: var(--navbar-shadow-lg);
  padding: 1rem;
  z-index: 1000;
}

.navbar-mobile-menu.show {
  display: block;
}

.navbar-mobile-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.navbar-mobile-section:last-child {
  margin-bottom: 0;
}

.navbar-mobile-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--navbar-item-radius);
  transition: var(--navbar-transition);
}

.navbar-mobile-item:hover {
  color: #e8e8e8 !important;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.navbar-mobile-item.current {
  color: var(--navbar-text-current);
  background-color: rgba(0, 102, 204, 0.1);
  font-weight: 600;
}

.navbar-mobile-item i {
  margin-right: 0.75rem;
  font-size: 1rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-section {
    display: none;
  }
  
  .navbar-mobile-toggle {
    display: flex;
  }
  
  .navbar-content {
    padding: 0;
  }
  
  .navbar-modern {
    padding: 0.5rem var(--navbar-padding-x);
  }
}

@media (max-width: 480px) {
  .navbar-logo img {
    height: 1.5rem;
  }
  
  .navbar-logo {
    font-size: 1rem;
  }
  
  .navbar-user-info {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
}



/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .navbar-modern,
  .navbar-item,
  .navbar-dropdown-toggle,
  .navbar-dropdown-menu,
  .navbar-dropdown-item,
  .navbar-mobile-toggle,
  .navbar-mobile-item {
    transition: none;
  }
}

/* Focus Visible for Better Accessibility */
.navbar-item:focus-visible,
.navbar-dropdown-toggle:focus-visible,
.navbar-dropdown-item:focus-visible,
.navbar-mobile-toggle:focus-visible,
.navbar-mobile-item:focus-visible {
  outline: 2px solid var(--navbar-text-current);
  outline-offset: 2px;
}