body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  transition: background-color 0.3s ease;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 220px;
  background-color: #1e1e2f;
  color: white;
  transition: transform 0.4s ease, opacity 0.4s ease;
  padding-top: 20px;
  opacity: 1;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.closed {
  transform: translateX(-100%);
  opacity: 0;
}

.logo {
  text-align: center;
  font-size: 22px;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 1px;
}

.menu {
  list-style: none;
  padding: 0;
}

.menu li {
  margin: 20px 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.menu li:hover {
  transform: scale(1.1);
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.menu a i {
  margin-right: 10px;
  color: #00bfff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu a:hover i {
  transform: rotate(10deg) scale(1.2);
  color: #ffffff;
}


#toggle-btn {
  position: fixed;
  left: 15px;
  top: 15px;
  font-size: 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.2s ease;
}

#toggle-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* mobile phone*/
@media (max-width: 768px) {
  .sidebar {
    width: 180px;
  }
}
