.sidebar {
  background: linear-gradient(180deg, #2d5016 0%, #4a7c2c 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

.user-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 10px 0 5px;
}

.user-role {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  background: none;
  border: none;
  border-left: 4px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: var(--accent-color);
  color: var(--white);
  font-weight: bold;
}

.sidebar-logout {
  margin-top: 8px;
  padding: 12px 20px;
}

.sidebar-logout button {
  width: 100%;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-header {
    flex: 1;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
  }

  .sidebar-header h2 {
    font-size: 1.3rem;
  }

  .sidebar-menu {
    display: flex;
    align-items: center;
    padding: 0;
    flex: 2;
  }

  .sidebar-link {
    padding: 10px 15px;
    border-left: none;
    border-bottom: 4px solid transparent;
  }

  .sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--accent-color);
  }

  .sidebar-logout {
    margin-top: 0;
    padding: 10px 15px;
  }

  .sidebar-logout button {
    width: auto;
  }
}
