/* Base styles */
body {
  background-color: #f8f9fa;
}
.sidebar {
  min-height: 100vh;
  background-color: #343a40;
  color: white;
  transition: left 0.3s ease-in-out;
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -200px;
    width: 200px;
    z-index: 1040;
  }

  .sidebar.show {
    left: 0;
  }

  .main {
    margin-left: 0 !important;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1030;
  }

  .overlay.show {
    display: block;
  }
}

/* Desktop: normal sidebar */
@media (min-width: 769px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
  }

  .overlay {
    display: none !important;
  }

  .main {
    margin-left: 200px;
  }
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}
.sidebar a:hover {
  background-color: #495057;
}
.sidebar .active {
  background-color: #007bff;
}
