body, html {
  margin: 0;
  height: 100%;
  font-family: sans-serif;
}

#app {
  display: flex;
  height: 100vh;
  position: relative;
}

.sidebar {
  width: 320px;
  color: black;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 2;
  background: white;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar.hidden {
  position: absolute;
  transform: translateX(-100%);
  left: 0;
  top: 0;
}

.logo {
  width: 125px;
  height: 50px;
}

.logo-igalia {
  margin-top: auto;
  padding: 1rem 0;
  text-align: center;
}

#main {
  flex: 1;
  background: #f3f4f6;
  overflow-y: auto;
  padding: 1rem;
}

.main-header {
  padding-bottom: 1rem;
}

.show-sidebar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.5;
}

/* Active menu item styling */
sl-menu-item[data-active="true"]::part(base) {
  background-color: var(--sl-color-primary-100);
  font-weight: bold;
}

sl-menu-item[data-active="true"]::part(label) {
  font-weight: bold;
}

/* Ensure menu items display vertically */
sl-menu {
  display: flex;
  flex-direction: column;
}

sl-menu sl-checkbox {
  display: block;
  width: 100%;
  margin-bottom: 0.25rem;
}

/* Sidebar navigation section headers */
.nav-section {
  margin-bottom: 0.5rem;
}

.nav-section-header {
  font-weight: 600;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Date range filter styling */
date-range-filter {
  display: flex;
  align-items: center;
}

date-range-filter sl-button-group {
  --sl-spacing-x-small: 0;
}

date-range-filter sl-button {
  --sl-input-height-medium: 2.5rem;
  --sl-spacing-medium: 0.5rem;
}

date-range-filter .date-divider {
  height: 3rem;
  margin-right: 0;
  --width: 2px;
}
