/* Sidebar Styling */
.sidebar {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 12px;
  width: 230px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 68px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-header h3 {
  font-size: 15px;
  color: #444;
  text-transform: uppercase;
  margin: 0;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .sidebar-nav span {
  opacity: 0;
  visibility: hidden;
  width: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #006400;
  transition: transform 0.3s ease;
}

.toggle-btn:hover {
  transform: rotate(90deg);
}

/* Navigation links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  background: #f3f7f4;
  color: #006400;
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
}

.sidebar-footer .btn {
  width: 100%;
  background: #006400;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.sidebar-footer .btn:hover {
  background: #008000;
}
