/* Clean Professional Navigation */

.clean-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

[data-theme="dark"] .clean-nav {
  background: #1f2937;
  border-bottom-color: #374151;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand */
.nav-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
  font-size: 1.25rem;
}

[data-theme="dark"] .brand-link {
  color: #f9fafb;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand-text {
  color: inherit;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .nav-link {
  color: #9ca3af;
}

.nav-link:hover {
  color: #1f2937;
  background: #f3f4f6;
}

[data-theme="dark"] .nav-link:hover {
  color: #f9fafb;
  background: #374151;
}

.nav-link.active {
  color: #3b82f6;
  background: #eff6ff;
}

[data-theme="dark"] .nav-link.active {
  color: #60a5fa;
  background: #1e3a8a;
}

.nav-link-primary {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}

.nav-link-primary:hover {
  background: #2563eb;
  color: #ffffff;
}

/* User Section */
.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.username {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

[data-theme="dark"] .username {
  color: #f9fafb;
}

.user-level {
  font-size: 0.75rem;
  color: #6b7280;
}

[data-theme="dark"] .user-level {
  color: #9ca3af;
}

.logout-btn {
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .logout-btn {
  border-color: #4b5563;
  color: #9ca3af;
}

.logout-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

[data-theme="dark"] .logout-btn:hover {
  background: #374151;
  color: #f9fafb;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #6b7280;
  border-radius: 1px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .mobile-toggle span {
  background: #9ca3af;
}

.mobile-toggle:hover span {
  background: #1f2937;
}

[data-theme="dark"] .mobile-toggle:hover span {
  background: #f9fafb;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s ease;
  padding: 1.5rem;
}

[data-theme="dark"] .mobile-menu {
  background: #1f2937;
  border-bottom-color: #374151;
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-link {
  display: block;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

[data-theme="dark"] .mobile-link {
  color: #d1d5db;
  border-bottom-color: #374151;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #3b82f6;
}

[data-theme="dark"] .mobile-link:hover {
  color: #60a5fa;
}

.mobile-link.active {
  color: #3b82f6;
  font-weight: 600;
}

[data-theme="dark"] .mobile-link.active {
  color: #60a5fa;
}

.mobile-link-primary {
  background: #3b82f6;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.mobile-link-primary:hover {
  background: #2563eb;
  color: #ffffff;
}

.mobile-user {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .mobile-user {
  border-top-color: #374151;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mobile-username {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

[data-theme="dark"] .mobile-username {
  color: #f9fafb;
}

.mobile-user-level {
  font-size: 0.75rem;
  color: #6b7280;
}

[data-theme="dark"] .mobile-user-level {
  color: #9ca3af;
}

.mobile-logout {
  width: 100%;
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .mobile-logout {
  border-color: #4b5563;
  color: #9ca3af;
}

.mobile-logout:hover {
  background: #f3f4f6;
  color: #1f2937;
}

[data-theme="dark"] .mobile-logout:hover {
  background: #374151;
  color: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-user {
    display: none;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
}