/* Clean navigation-styles.css - Template 3 Dark Dashboard (No Debug Elements) */

/* Hide old header and nav styles */
header:not(.unified-header),
.nav-container {
  display: none !important;
}

/* Unified Header - Template 3 Dark Dashboard Style */
.unified-header {
  background: #1e293b !important;
  color: white;
  padding: 1rem 0;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.unified-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo Section */
.unified-header .logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.unified-header .logo-section:hover {
  opacity: 0.9;
}

.unified-header .logo-placeholder {
  width: 48px;
  height: 48px;
  background: #334155;
  border: 2px solid #475569;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s;
}

.unified-header .logo-placeholder:hover {
  background: #475569;
  border-color: #64748b;
}

.unified-header .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white !important;
}

/* Main Navigation */
.unified-header .main-navigation {
  flex: 1;
}

.unified-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Navigation items styling */
.unified-header .nav-item {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
  font-size: 0.875rem;
  background: transparent !important;
  border: none !important;
}

.unified-header .nav-item:hover {
  color: white !important;
  background: #334155 !important;
  transform: translateY(-1px);
}

/* CLEAN Active state - no debug elements */
.unified-header .nav-menu .nav-item.active,
.unified-header .nav-item.active,
header.unified-header .nav-item.active {
  color: white !important;
  background: #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.unified-header .nav-menu .nav-item.active:hover,
.unified-header .nav-item.active:hover,
header.unified-header .nav-item.active:hover {
  color: white !important;
  background: #2563eb !important;
  transform: translateY(-1px);
}

/* User Section */
.unified-header .user-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 300px;
  justify-content: flex-end;
  position: relative; /* Important for dropdown positioning */
}


/* Search Container - Hidden */
.unified-header .search-container {
  display: none !important;
}

/* Header Actions */
.unified-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.unified-header .action-btn {
  width: 40px;
  height: 40px;
  background: #334155 !important;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1 !important;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.unified-header .action-btn:hover {
  background: #475569 !important;
  color: white !important;
  transform: scale(1.05);
}

.unified-header .notification-btn {
  position: relative;
}

.unified-header .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Profile */
.unified-header .user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #334155 !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.unified-header .user-profile:hover {
  background: #475569 !important;
  border-color: #64748b;
}

.unified-header .user-avatar {
  width: 36px;
  height: 36px;
  background: #3b82f6 !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-weight: 700;
  font-size: 0.875rem;
}

.unified-header .user-details {
  display: flex;
  flex-direction: column;
}

.unified-header .user-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: white !important;
}

.unified-header .user-status,
.unified-header .user-plan {
  font-size: 0.75rem;
  color: #94a3b8 !important;
  line-height: 1.2;
}

/* Mobile Menu Button */
.unified-header .mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #334155;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
}

.unified-header .mobile-menu-btn:hover {
  background: #475569;
  color: white;
}

/* FIXED: Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #1e293b;
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 2rem 0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav-menu.show {
  right: 0;
}

.mobile-nav-header {
  padding: 0 2rem 2rem 2rem;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-items {
  padding: 2rem 0;
}

.mobile-nav-item {
  display: block;
  color: #cbd5e1 !important;
  text-decoration: none;
  padding: 1rem 2rem;
  font-weight: 500;
  border-bottom: 1px solid #334155;
  transition: all 0.2s;
}

.mobile-nav-item:hover {
  background: #334155;
  color: white !important;
}

.mobile-nav-item.active {
  background: #3b82f6 !important;
  color: white !important;
}

/* User Dropdown Styles */
.header-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #1e293b !important;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.header-user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-user-dropdown .dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid #334155;
}

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

.header-user-dropdown .dropdown-avatar {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.header-user-dropdown .dropdown-user-details {
  flex: 1;
}

.header-user-dropdown .dropdown-user-name {
  font-weight: 600;
  color: white !important;
  font-size: 0.875rem;
}

.header-user-dropdown .dropdown-user-email {
  font-size: 0.75rem;
  color: #94a3b8 !important;
}

.header-user-dropdown .dropdown-menu {
  padding: 0.5rem;
}

.header-user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #cbd5e1 !important;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.header-user-dropdown .dropdown-item:hover {
  background: #334155 !important;
  color: white !important;
}

.header-user-dropdown .dropdown-item.danger {
  color: #ef4444 !important;
}

.header-user-dropdown .dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

.header-user-dropdown .dropdown-divider {
  height: 1px;
  background: #334155;
  margin: 0.5rem 0;
}

/* Override any conflicting styles */
.unified-header * {
  box-sizing: border-box;
}

.unified-header .nav-menu a,
.unified-header .nav-menu .nav-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

nav, .nav, .navigation, .navbar {
  background: transparent !important;
}

.unified-header nav,
.unified-header .nav,
.unified-header .navigation {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .unified-header .container {
    gap: 1rem;
  }
  
  .unified-header .user-section {
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .unified-header .main-navigation {
    display: none;
  }
  
  .unified-header .mobile-menu-btn {
    display: flex;
  }
  
  .unified-header .container {
    justify-content: space-between;
  }
  

  
  .unified-header .user-section {
    min-width: auto;
    gap: 0.75rem;
  }
  
  .unified-header .brand-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .unified-header .container {
    padding: 0 1rem;
  }

  
  .unified-header .user-details {
    display: none;
  }
}

/* FIXED: Mobile Menu CSS - Ensures menu button shows on small screens */

/* Add this to the END of your navigation-styles.css file or replace the mobile section */

/* Mobile Menu Button - FIXED: Higher specificity to override inline styles */
.unified-header .mobile-menu-btn {
  display: none !important; /* Hidden by default on desktop */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #334155;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
}

.unified-header .mobile-menu-btn:hover {
  background: #475569;
  color: white;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #1e293b;
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 2rem 0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav-menu.show {
  right: 0;
}

.mobile-nav-header {
  padding: 0 2rem 2rem 2rem;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-header .brand-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.mobile-nav-close:hover {
  color: white;
}

.mobile-nav-items {
  padding: 2rem 0;
}

.mobile-nav-item {
  display: block;
  color: #cbd5e1 !important;
  text-decoration: none;
  padding: 1rem 2rem;
  font-weight: 500;
  border-bottom: 1px solid #334155;
  transition: all 0.2s;
}

.mobile-nav-item:hover {
  background: #334155;
  color: white !important;
}

.mobile-nav-item.active {
  background: #3b82f6 !important;
  color: white !important;
}

/* FIXED: Mobile Responsive Breakpoints */
@media (max-width: 1024px) {
  .unified-header .container {
    gap: 1rem;
  }
  
  .unified-header .user-section {
    min-width: 200px;
  }
}

/* CRITICAL: Mobile menu button must show on tablets and phones */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .unified-header .main-navigation {
    display: none !important;
  }
  
  /* SHOW mobile menu button - higher specificity */
  .unified-header .mobile-menu-btn {
    display: flex !important;
  }
  
  .unified-header .container {
    justify-content: space-between;
  }
  

  .unified-header .user-section {
    min-width: auto;
    gap: 0.75rem;
  }
  
  .unified-header .brand-text {
    font-size: 1.25rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .unified-header .container {
    padding: 0 1rem;
  }
  
  
  .unified-header .user-details {
    display: none;
  }
  
  /* Ensure mobile menu button is visible on very small screens */
  .unified-header .mobile-menu-btn {
    display: flex !important;
  }
}

/* Debug: Force mobile menu visibility for testing */
@media (max-width: 768px) {
  .unified-header #mobile-menu-btn {
    display: flex !important;
    background: #ef4444 !important; /* Temporary red color to make it obvious */
  }
}

/* ADD THESE LINES TO THE END OF YOUR EXISTING navigation-styles.css */

/* Fix white background issue */
.header-user-dropdown {
  background: #1e293b !important;
    border: none !important; /* Remove any border */
  border-top: none !important; /* Specifically remove top border */
  outline: none !important; /* Remove any outline */
}

/* Fix duplicate user info issue */
.header-user-dropdown .dropdown-header {
  display: none !important;
}

/* Ensure dark theme for menu items */
.header-user-dropdown .dropdown-menu {
  background: #1e293b !important;
}

.header-user-dropdown .dropdown-item {
  color: #cbd5e1 !important;
}

.header-user-dropdown .dropdown-item:hover {
  background: #334155 !important;
  color: white !important;
}