@mixin matcha-menu-theme($theme) {
  $primary: map-get($theme, primary);
  $accent: map-get($theme, accent);
  $background: map-get($theme, background);
  $foreground: map-get($theme, foreground);

  .matcha-menu-content {
    display: flex;
    flex-direction: column;
    padding: 8px 0;

    button,
    [matcha-button] {
      width: 100%;
      text-align: left;
      justify-content: flex-start;
      border-radius: 0;
      padding: 8px 16px;
      height: 40px;
      font-weight: 500;

      &:hover {
        filter: brightness(0.98);
      }

      &:active {
        filter: brightness(0.96);
      }

      matcha-icon,
      .matcha-icon {
        margin-right: 12px;
      }
    }

    // Item com submenu - mostra indicador de seta
    .matcha-menu-item-has-submenu {
      position: relative;
      padding-right: 36px;

      &::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid getForeground($theme);
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        opacity: 0.5;
      }

      &:hover::after {
        opacity: 0.8;
      }
    }
  }
}
