.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 25%; /* Changed from 280px to 25% */
  max-width: 400px; /* Optional: set a maximum width */
  min-width: 250px; /* Optional: set a minimum width */
  background-color: var(--secondary-bg);
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
  
  /* Hide scrollbar completely */
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
  display: none;
}


.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding: 0 1.5rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--card-bg);
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 25%;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;

  /* Make it more circular/square */
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  
  /* Add smooth transitions */
  transition: all 0.3s ease;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

/* When sidebar is open, transform the button */
.mobile-menu-btn.active {
  left: calc(25% - 60px); /* Position relative to sidebar width */
  background-color: var(--text-muted); /* Less eye-catching gray color */
}

.mobile-menu-btn.active:hover {
  background-color: var(--text-secondary); /* Slightly lighter on hover */
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .sidebar {
    width: 75%; /* On mobile, make it 75% of screen width */
    max-width: none; /* Remove max-width constraint on mobile */
    min-width: none; /* Remove min-width constraint on mobile */
    transform: translateX(-100%);
    /* Ensure no scrollbar on mobile */
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active {
    left: calc(75% - 60px); /* Adjust for mobile sidebar width */
  }
  
  .content-wrapper {
    padding: 4rem 1rem 2rem;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}