body {
  font-family: sans-serif;
  margin: 0;
  display: flex;
}
.sidebar {
  width: 250px;
  background-color: #333;
  color: white;
  padding-top: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.3s ease;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  z-index: 1000;
}
.sidebar.collapsed {
  width: 60px;
}
.sidebar h2 {
  text-align: center;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar.collapsed h2 {
  display: none;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar ul li a {
  display: block;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar ul li a:hover {
  background-color: #575757;
  cursor: pointer;
}
.sidebar.collapsed ul li a {
  text-align: center;
  padding: 10px 0;
}
.sidebar.collapsed ul li a span {
  display: none; /* Hide text, only show icons if applicable */
}

.toggle-btn {
  background-color: #555;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.main-content {
  margin-left: 250px;
  padding: 20px;
  flex-grow: 1;
  transition: margin-left 0.3s ease;
}
.main-content.shifted {
  margin-left: 60px;
}

header h1 {
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}
section h2 {
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  margin-top: 30px;
}
