/* Navigation Styles */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    
    /* Mobile: Full screen overlay (hidden by default) */
    background: white;
    width: 100%;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  
  /* Desktop: Floating embedded navigation */
  @media (min-width: 769px) {
    .nav-overlay {
      background: transparent; /* No background container */
      width: auto; /* Auto width based on content */
      height: auto; /* Auto height based on content */
      transform: translateX(0); /* Always visible */
      transition: none; /* No animation needed */
      position: fixed; /* Keep fixed positioning */
      top: 50%; /* Center vertically */
      left: 40px; /* Position from left */
      transform: translateY(-50%); /* Center vertically */
      display: block; /* Change from flex to block */
      overflow: visible; /* No scrolling needed */
    }
  }
  
  /* Mobile: Show overlay when active */
  .nav-overlay.active {
    transform: translateX(0);
  }
  
  /* Desktop: Always active, no need for .active class behavior change */
  @media (min-width: 769px) {
    .nav-overlay.active {
      transform: translateX(0); /* Same as default state */
    }
  }
  
  /* Navigation Header */
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e1e1;
    background: white;
    min-height: 70px;
    box-sizing: border-box;
  }
  
  .nav-header h1 {
    color: #2d2d2d;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
  }
  
  /* Desktop: Hide navigation header completely */
  @media (min-width: 769px) {
    .nav-header {
      display: none;
    }
  }
  
  .close-nav {
    background: transparent;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
  }
  
  .close-nav:hover {
    background: #f5f5f5;
  }
  
  .close-icon {
    color: #2d2d2d;
    font-size: 1.5rem;
    font-weight: 400;
  }
  
  /* Desktop: Hide close button since sidebar is persistent */
  @media (min-width: 769px) {
    .close-nav {
      display: none;
    }
  }
  
  /* Navigation Menu */
  .nav-menu {
    flex: 1;
    padding: 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .nav-item {
    margin-bottom: 2px;
  }
  
  .nav-item.nav-divider {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
  }
  
  /* Desktop: Floating menu styling */
  @media (min-width: 769px) {
    .nav-menu {
      flex: none;
      padding: 0;
      display: block;
    }
    
    .nav-list {
      width: auto;
    }
    
    .nav-item {
      margin-bottom: 12px;
    }
    
    .nav-item.nav-divider {
      margin-top: 24px;
      padding-top: 12px;
      border-top: none; /* Remove divider line for floating nav */
    }
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: 0;
    margin: 0;
    background: transparent;
    border: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
  }
  
  .nav-link:hover {
    background: #f5f5f5;
    transform: none;
  }
  
  .nav-link:active {
    background: #e8e8e8;
  }
  
  /* Desktop: Clean text-only navigation */
  @media (min-width: 769px) {
    .nav-link {
      display: block;
      padding: 6px 0;
      font-size: 1.2rem;
      font-weight: 500;
      color: #2d2d2d;
      background: transparent;
      border: none;
      border-radius: 0;
      width: auto;
      text-align: left;
      text-decoration: none;
    }
    
    .nav-link:hover {
      color: #2d2d2d;
      background: transparent;
      transform: none;
      box-shadow: none;
    }
    
    .nav-link:active {
      color: #000;
      background: transparent;
      transform: none;
    }
  }
  
  .nav-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
  }
  
  .nav-text {
    flex: 1;
    text-align: left;
  }
  
  /* Desktop: Hide icons and adjust text */
  @media (min-width: 769px) {
    .nav-icon {
      display: none;
    }
    
    .nav-text {
      flex: none;
      text-align: center;
    }
  }
  
  /* Logout button specific styling */
  .logout-btn:hover {
    background: #ffebee;
    color: #c62828;
  }
  
  /* Desktop: Clean logout button styling */
  @media (min-width: 769px) {
    .logout-btn {
      font-size: 1rem;
    }
    
    .logout-btn .nav-text {
      font-size: 1rem;
    }
    
    .logout-btn:hover {
      background: transparent;
      color: #c62828;
      border: none;
    }
  }
  
  /* Mobile Responsive Design */
  @media (max-width: 768px) {
    .nav-overlay {
      width: 100%;
      height: 100vh;
    }
    
    .nav-header {
      padding: 20px 20px;
    }
  
    .nav-header h1 {
      font-size: 2.2rem;
    }
  
    .close-nav {
      width: 40px;
      height: 40px;
    }
  
    .close-icon {
      font-size: 1.3rem;
    }
  
    .nav-link {
      padding: 16px 25px;
      font-size: 2.0rem; /* Reduced mobile font size */
      margin: 0 15px;
    }
  
    .nav-icon {
      display: none; /* Hide icons on mobile */
    }
  }
  
  /* Minimalist Hamburger Menu */
  .hamburger-menu {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    background: transparent;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  
  .hamburger-menu:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  /* Desktop: Hide hamburger menu since sidebar is persistent */
  @media (min-width: 769px) {
    .hamburger-menu {
      display: none;
    }
  }
  
  .hamburger-line {
    width: 18px;
    height: 2px;
    background: #2d2d2d;
    margin: 2px 0;
    transition: all 0.15s ease;
    border-radius: 1px;
  }

  /* Mobile responsive for hamburger menu */
  @media (max-width: 480px) {
    .hamburger-menu {
      top: 50%;
      left: 15px;
      width: 35px;
      height: 35px;
    }

    .hamburger-line {
      width: 18px;
    }
  }

  /* Logout button specific styling */
.logout-btn {
    font-size: 1.5rem !important; 
  }
  
  .logout-btn:hover {
    background: rgba(244, 67, 54, 0.2);
  }
  
  /* Mobile responsive for logout */
  @media (max-width: 768px) {
    .logout-btn {
      font-size: 1.8rem !important; 
    }
  }
  
  /* No desktop overlay needed - sidebar is persistent */