/**
 * @file
 * SLM module styles.
 */

.slm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slm-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slm-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.slm-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.slm-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  flex: 1;
}

.slm-link:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.slm-link--active {
  background-color: #007bff;
  color: white;
}

.slm-link--active-trail {
  background-color: #e3f2fd;
  color: #1976d2;
}

.slm-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #666;
  margin-left: 0.5rem;
}

.slm-toggle:hover {
  color: #333;
}

.slm-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.slm-toggle--expanded svg {
  transform: rotate(45deg);
}

.slm-children {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 1rem;
  background-color: #fafafa;
}

.slm-children.expanded {
  display: block;
}

.slm-item--active {
  background-color: #e3f2fd;
}

.slm-item--active-trail {
  background-color: #f5f5f5;
}

.slm-item--expanded > .slm-children {
  display: block;
}

/* RTL Support */
[dir="rtl"] .slm-children {
  padding-left: 0;
  padding-right: 1rem;
}

[dir="rtl"] .slm-toggle {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .slm-link {
    padding: 0.75rem 1rem;
  }
  
  .slm-toggle {
    padding: 0.5rem;
  }
  
  .slm-children {
    padding-left: 0.5rem;
  }
  
  [dir="rtl"] .slm-children {
    padding-right: 0.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .slm-link {
    border: 1px solid currentColor;
  }
  
  .slm-toggle {
    border: 1px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .slm-toggle svg {
    transition: none;
  }
} 