body {
  margin: 0;
}

.hero {
  height: 100vh;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 80px;
  background-color: #2c6441;
  transition: width 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
  overflow-x: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}


.sidebar.visible {
  opacity: 1;
  visibility: visible;
}

.sidebar:hover {
  width: 280px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  color: #e6e6e6;
  padding: 12px 20px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: #157347;
  color: #fff;
}

.sidebar .icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.0);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;

}


.sidebar .nav-link span {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .nav-link span {
  opacity: 1;
}


.main-content {
  padding: 20px;
  transition: margin-left 0.3s ease;
}

.sidebar.visible ~ .main-content {
  margin-left: 80px;
}

.sidebar:hover ~ .main-content {
  margin-left: 300px;
}


@media (max-width: 992px) {
  .sidebar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }
}
