/* Notes Accordion Styling */
.notes-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.notes-category {
  border: 1px solid var(--main-border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.notes-category:hover {
  box-shadow: var(--card-shadow);
}

.notes-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  cursor: pointer;
  user-select: none;
  background-color: var(--card-header-bg);
  transition: background-color 0.2s ease;
}

/* Remove default browser <details> marker */
.notes-category-title::-webkit-details-marker {
  display: none;
}
.notes-category-title {
  list-style: none;
}

.notes-category-name {
  display: flex;
  align-items: center;
}

.notes-category-icon {
  font-size: 1rem;
  color: var(--text-muted-color);
  transition: transform 0.3s ease;
}

/* Rotate icon when open */
.notes-category[open] .notes-category-icon {
  transform: rotate(-180deg);
}

.notes-list {
  margin: 0;
  padding: 1rem 1.25rem 1rem 2.5rem;
  list-style: disc;
  border-top: 1px solid var(--main-border-color);
  background-color: var(--card-bg);
}

.notes-item {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.notes-item:last-child {
  margin-bottom: 0;
}

.notes-item a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.notes-item a:hover {
  border-bottom-color: var(--link-underline-color);
}
