#sidebar {
  width: var(--sidebar-width);
  height: calc(100% - var(--navbar-height));
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  background: rgba(var(--color-black), 0.2);
  box-shadow: var(--fd-box-shadow);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  justify-content: space-between;
}

#sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#sidebar-section {
  margin-top: 1rem;
}

/* **************************************** Sidebar Header **************************************** */

#sidebar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  color: var(--secondary);
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  padding-top: 0.6rem;
}

#sidebar-header h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
}

#sidebar-header svg {
  height: 30px;
  width: 30px;
}

#sidebar-header a {
  text-decoration: none;
  padding: 0 0 0 0.2rem;
}

#sidebar-header a:hover {
  color: var(--secondary);
}

/* **************************************** Sidebar Footer **************************************** */

#sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: var(--primary);
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--secondary);
}

#user-logo {
  height: 60px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  fill: var(--secondary);
}

#user-info {
  width: 100%;
  overflow: hidden;
  margin-left: 0.5rem;
}

/* **************************************** Sidebar Footer Popup **************************************** */

#footer-popup {
  width: 100%;
  background-color: var(--primary);
  box-shadow: var(--fd-box-shadow);
  border-radius: var(--radius-sm);
  position: absolute;
  display: flex;
  flex-direction: row;
  padding: 1rem 0.5rem;
  bottom: 4.5rem;
  left: 1rem;
}

#footer-popup button {
  width: 100%;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  text-align: left;
  background-color: var(--secondary);
  color: var(--primary);
  cursor: pointer;
}

#footer-popup button:hover {
  background-color: var(--secondary);
  color: var(--primary);
}
