@use 'ui-design-system/src/styles/semantic' as semantic;

.sidebar-container {
  padding: 1rem 0;

  .menu-item-wrapper {
    margin-bottom: 0.25rem;

    .parent-menu-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1rem;
      cursor: pointer;
      border-radius: 8px;
      margin: 0 0.5rem;
      transition: background-color 0.2s ease;
      
      &:hover {
        background-color: semantic.$semantic-color-surface-interactive;
      }

      .parent-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;

        .parent-icon {
          font-size: 1rem;
          color: semantic.$semantic-color-text-secondary;
        }

        .parent-label {
          font-weight: 500;
          color: semantic.$semantic-color-text-primary;
          font-size: 0.875rem;
        }
      }

      .chevron-icon {
        font-size: 0.75rem;
        color: semantic.$semantic-color-text-tertiary;
        transition: transform 0.2s ease;
      }
    }

    .children-container {
      margin-left: 1rem;
      padding-left: 1rem;
      margin-top: 0.25rem;

      ::ng-deep .child-menu-item {
        margin-bottom: 0.125rem;
        
        ui-menu-item {
          --menu-item-padding: 0.5rem 1rem;
          --menu-item-font-size: 0.8125rem;
        }
      }
    }
  }
}