/* Shared Lilly sidebar — fetched/injected by shared/sidebar.js on every page */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-header h1 {
  color: #d32f2f;
  font-size: 1.5rem;
  font-weight: bold;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav ul li {
  margin: 0.25rem 0;
}

.sidebar-nav ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover {
  background: #e9ecef;
  border-left-color: #d32f2f;
}

.sidebar-nav ul li a.active {
  background: #e3f2fd;
  border-left-color: #d32f2f;
  color: #d32f2f;
  font-weight: 600;
}

/* Accordion */
.accordion-header {
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #f8f9fa;
}

.accordion-icon {
  color: #d32f2f;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 500px;
}

.sidebar-footer {
  padding: 1.5rem 1rem;
  background: #fff;
  border-top: 1px solid #dee2e6;
}

.sidebar-footer h2 {
  color: #d32f2f;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.sidebar-footer p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: 50vh;
  }
}
